fix params2

This commit is contained in:
jakubknczny 2021-05-15 14:11:08 +02:00
parent 875058e715
commit e43d6ca0ed

View File

@ -14,19 +14,19 @@ pipeline {
} }
stage('docker') { stage('docker') {
agent { agent {
dockerfile { dockerfile true
filename 'Dockerfile'
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
}
} }
stages { stages {
stage('script') { stage('script') {
steps { steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh ''' sh '''
chmod +x script.sh chmod +x script.sh
./script.sh''' ./script.sh'''
} }
} }
}
stage('archive artifact') { stage('archive artifact') {
steps { steps {
archiveArtifacts 'train.csv' archiveArtifacts 'train.csv'