Edit Jenkins file to run only sh script.

This commit is contained in:
s487179 2023-04-13 23:10:05 +02:00
parent 3f9666d688
commit 7bf4894d59

17
Jenkinsfile vendored
View File

@ -14,22 +14,15 @@ pipeline {
)
}
stages {
stage('Configure kaggle') {
steps {
// Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}
}
}
stage('Run sh file') {
steps {
checkout scm
sh 'ls -l'
sh 'chmod +x ./datasetScript.sh'
sh './datasetScript.sh'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'chmod +x ./datasetScript.sh'
sh './datasetScript.sh'
}
}
}
}