ium_470607/Jenkinsfile

20 lines
682 B
Plaintext
Raw Normal View History

2021-03-27 16:54:42 +01:00
pipeline {
agent any
2021-03-28 14:13:40 +02:00
properties([parameters([string(defaultValue: '20000', description: '', name: 'CUTOFF', trim: false)])])
2021-03-27 16:54:42 +01:00
stages {
2021-03-28 13:29:04 +02:00
stage('sh: Shell Script') {
2021-03-27 16:54:42 +01:00
steps {
2021-03-28 13:29:04 +02:00
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
2021-03-28 13:42:13 +02:00
sh 'chmod +x script-zadanie-2-4.sh'
sh './script-zadanie-2-4.sh'
2021-03-28 14:06:52 +02:00
sh 'head -n ${CUTOFF} train.csv >> train.csv'
2021-03-28 13:29:04 +02:00
}
archiveArtifacts 'train.csv'
archiveArtifacts 'test.csv'
archiveArtifacts 'valid.csv'
2021-03-27 16:54:42 +01:00
}
}
}
}