20 lines
679 B
Groovy
20 lines
679 B
Groovy
pipeline {
|
|
agent any
|
|
options([parameters([string(defaultValue: '20000', description: '', name: 'CUTOFF', trim: false)])])
|
|
stages {
|
|
stage('sh: Shell Script') {
|
|
steps {
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
sh 'chmod +x script-zadanie-2-4.sh'
|
|
sh './script-zadanie-2-4.sh'
|
|
sh 'head -n ${CUTOFF} train.csv >> train.csv'
|
|
}
|
|
archiveArtifacts 'train.csv'
|
|
archiveArtifacts 'test.csv'
|
|
archiveArtifacts 'valid.csv'
|
|
}
|
|
}
|
|
}
|
|
}
|