ium_444498/Jenkinsfile

35 lines
1.1 KiB
Plaintext
Raw Normal View History

pipeline {
parameters {
string (
defaultValue: 'wirus006',
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'
)
}
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t s444498-create-dataset"
2022-03-26 11:42:48 +01:00
}
}
stages {
stage('Archive dataset') {
2022-03-26 11:59:53 +01:00
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
2022-03-28 11:23:11 +02:00
sh 'echo hello world | figlet'
sh 'chmod a+rwx -R *'
sh 'pwd && ls'
sh 'ls /app/data/'
archiveArtifacts artifacts: '/app/data/*', onlyIfSuccessful: true
}
2022-03-26 11:59:53 +01:00
}
}
2022-03-21 11:28:45 +01:00
}
2022-03-26 11:42:48 +01:00
}