fix params2
This commit is contained in:
parent
875058e715
commit
e43d6ca0ed
8
lab5/create/Jenkinsfile
vendored
8
lab5/create/Jenkinsfile
vendored
@ -14,19 +14,19 @@ pipeline {
|
||||
}
|
||||
stage('docker') {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
|
||||
}
|
||||
dockerfile true
|
||||
}
|
||||
stages {
|
||||
stage('script') {
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh '''
|
||||
chmod +x script.sh
|
||||
./script.sh'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('archive artifact') {
|
||||
steps {
|
||||
archiveArtifacts 'train.csv'
|
||||
|
Loading…
Reference in New Issue
Block a user