zmienne
This commit is contained in:
parent
28581651da
commit
604a36888f
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -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}')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user