Edit Jenkins file to run only sh script.
This commit is contained in:
parent
3f9666d688
commit
7bf4894d59
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user