diff --git a/Jenkinsfile_docker b/Jenkinsfile_docker index f7ae244..913ff58 100644 --- a/Jenkinsfile_docker +++ b/Jenkinsfile_docker @@ -1,7 +1,7 @@ pipeline { agent { dockerfile { - additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF}" + additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t maciejczajka" } } parameters { diff --git a/Jenkinsfile_docker2 b/Jenkinsfile_docker2 index 55e885a..13dcacb 100644 --- a/Jenkinsfile_docker2 +++ b/Jenkinsfile_docker2 @@ -1,5 +1,9 @@ pipeline { - agent any + agent { + docker { + image 'maciejczajka' + } + } parameters{ buildSelector( defaultSelector: lastSuccessful(), @@ -10,7 +14,7 @@ pipeline { stages { stage("Script") { steps { - sh "docker run -t czajson99/ium:v9" + sh "./stats.sh" } } }