Edit Jenkins file to run only sh script.
This commit is contained in:
parent
3f9666d688
commit
7bf4894d59
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -14,23 +14,16 @@ 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'
|
||||
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