30 lines
934 B
Plaintext
30 lines
934 B
Plaintext
pipeline {
|
|
agent any
|
|
parameters {
|
|
string(defaultValue: '6000',
|
|
description: 'numbers of data entries to keep in train.csv',
|
|
name: 'CUTOFF',
|
|
trim: true)
|
|
}
|
|
stages {
|
|
stage('sh: Shell Script') {
|
|
steps {
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
sh 'chmod +x ./lab2/script-zadanie-2-4.sh'
|
|
sh './lab2/script-zadanie-2-4.sh'
|
|
sh 'chmod +x ./lab2/script-zadanie-2-4-cutoff.sh'
|
|
sh "./lab2/script-zadanie-2-4-cutoff.sh ${params.CUTOFF}"
|
|
}
|
|
}
|
|
}
|
|
stage('archive artifacts') {
|
|
steps {
|
|
archiveArtifacts 'train.csv'
|
|
archiveArtifacts 'test.csv'
|
|
archiveArtifacts 'valid.csv'
|
|
}
|
|
}
|
|
}
|
|
}
|