Simplify the solution
This commit is contained in:
parent
28718a082f
commit
8b9aa715b9
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -22,13 +22,9 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
sh 'echo ~'
|
||||
sh 'ls -al ~'
|
||||
sh 'whoami'
|
||||
sh 'mkdir -p ~/.kaggle'
|
||||
sh 'ls ~/.kaggle'
|
||||
sh 'set +x'
|
||||
sh 'echo "{\"username\":\"$KAGGLE_USERNAME\",\"key\":\"$KAGGLE_KEY\"}" > ~/.kaggle/kaggle.json'
|
||||
sh 'set -x'
|
||||
sh 'kaggle datasets list'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user