docker-v2

This commit is contained in:
s434732 2021-04-10 15:20:02 +02:00
parent 7f7f14fd9e
commit 2f00ff49b3

9
Jenkinsfile vendored
View File

@ -18,6 +18,7 @@ node {
] ]
) )
stage('Two') { stage('Two') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) { "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
@ -25,8 +26,12 @@ node {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434732/ium_434732']]]) checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434732/ium_434732']]])
def image = docker.build("image")
sh 'python3 ./skrypt_download.py' testImage.inside {
sh 'python3 ./skrypt_download.py'
}