43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
pipeline {
|
|
agent any
|
|
|
|
parameters {
|
|
string(
|
|
defaultValue: 'reyvan123',
|
|
description: 'Kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false
|
|
)
|
|
password(
|
|
defaultValue: '',
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
name: 'KAGGLE_KEY'
|
|
)
|
|
string(
|
|
defaultValue: '1,3,4',
|
|
description: 'Column indices to remove',
|
|
name: 'CUT',
|
|
trim: false
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage('checkout: Check out from version control') {
|
|
steps {
|
|
checkout scm
|
|
}
|
|
}
|
|
stage('sh: Shell Script') {
|
|
steps {
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
|
"CUT=${params.CUT}" ]) {
|
|
sh 'chmod +x script.sh'
|
|
sh './script.sh'
|
|
}
|
|
archiveArtifacts artifacts: 'output.txt.gz', fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
}
|