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

13
Jenkinsfile vendored
View File

@ -14,23 +14,16 @@ pipeline {
) )
} }
stages { 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') { stage('Run sh file') {
steps { steps {
checkout scm checkout scm
sh 'ls -l' sh 'ls -l'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'chmod +x ./datasetScript.sh' sh 'chmod +x ./datasetScript.sh'
sh './datasetScript.sh' sh './datasetScript.sh'
} }
} }
} }
} }
}