From 4eef8ce2a4f93bc01c07b699d964d0b8a9c07b89 Mon Sep 17 00:00:00 2001 From: michalzareba Date: Sun, 28 Mar 2021 20:26:06 +0200 Subject: [PATCH] add jenkins config --- Jenkinsfile | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 96cafbe..223058e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,27 @@ -pipeline { +pipeline{ agent any - stages { - stage('Stage 1') { - steps { - echo 'Hello world!' + properties([parameters([text(defaultValue: '50', description: 'Number of lines to cutoff', name: 'CUTOFF')])]) + stages{ + stage('Stage 1'){ + steps{ + echo 'Hello World!' + } + } + stage('checkout: Check out from version control'){ + steps{ + checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '3e2b5ea1-7a08-4418-892b-c562315036a4', url: 'https://git.wmi.amu.edu.pl/s430705/ium_430705']]]) + } + } + stage('sh: Shell Script'){ + steps{ + ./script.sh + } + } + stage('Archive artifacts'){ + steps{ + archiveArtifacts 'test.csv' + archiveArtifacts 'dev.csv' + archiveArtifacts 'train.csv' } } }