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