diff --git a/Jenkinsfile b/Jenkinsfile index aef4f37..7e20561 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,4 @@ pipeline { - agent none parameters{ string( defaultValue: 'mikolaj2', @@ -17,14 +16,8 @@ pipeline { name: 'KAGGLE_KEY' ) } + agent { dockerfile true } stages { - stage("start docker") { - agent { - docker.image('mikolajk/ium:latest').inside { - sh './startscript1.sh' - } - } - } stage("Check out from version control") { steps { checkout scm diff --git a/Jenkinsfile3 b/Jenkinsfile3 index 0977a60..124e092 100644 --- a/Jenkinsfile3 +++ b/Jenkinsfile3 @@ -1,5 +1,5 @@ pipeline { - agent none + agent any stages { stage("start docker") { agent {