This commit is contained in:
Jan Nowak 2021-04-10 18:16:12 +02:00
parent 28581651da
commit 604a36888f

5
Jenkinsfile vendored
View File

@ -27,12 +27,11 @@ pipeline {
} }
stage('docker') { stage('docker') {
agent { dockerfile true }
steps { steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) { "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh "chmod +x skrypt.sh" img = docker.build 'rokoch/ium:01'
sh "./skrypt.sh ${params.CUTOFF} | tee output.txt" img.run('-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}')
} }
} }
} }