add jenkins config

This commit is contained in:
michalzareba 2021-03-28 20:26:06 +02:00
parent e54a40db7d
commit 4eef8ce2a4

28
Jenkinsfile vendored
View File

@ -1,9 +1,27 @@
pipeline { pipeline{
agent any agent any
stages { properties([parameters([text(defaultValue: '50', description: 'Number of lines to cutoff', name: 'CUTOFF')])])
stage('Stage 1') { stages{
steps { stage('Stage 1'){
echo 'Hello world!' 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'
} }
} }
} }