ium_478855/Jenkinsfile
2022-03-27 21:55:50 +02:00

27 lines
736 B
Groovy

node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'h7557h',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password(
defaultValue: ''926ee9d10da62b6d8448a80a49404be0,
description: 'Kaggle token',
name: 'KAGGLE_KEY'
)
])
])
}
stage('Build') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}
}
}