ium_434804/Jenkinsfile

29 lines
1.0 KiB
Plaintext
Raw Normal View History

2021-03-28 20:35:30 +02:00
pipeline{
agent any
2021-03-28 20:38:55 +02:00
properties([parameters([text(defaultValue: '100', description: 'Number of lines to cutoff', name: 'CUTOFF')])])
2021-03-28 20:35:30 +02:00
stages{
stage('Stage 1'){
steps{
echo 'Init Jenkins file!'
}
}
stage('checkout: Check out from version control'){
steps{
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '87e24204-a0e1-4840-b235-2b993c922d83', url: 'https://git.wmi.amu.edu.pl/s434804/ium_434804']]])
}
}
stage('sh: Shell Script'){
steps{
2021-03-28 20:38:55 +02:00
withEnv(["CUTOFF=${params.CUTOFF}"])
2021-03-28 20:35:30 +02:00
./data.sh
}
}
stage('Archive artifacts'){
steps{
archiveArtifacts 'test.csv'
archiveArtifacts 'validation.csv'
archiveArtifacts 'train.csv'
}
}
}
}