diff --git a/Jenkinsfile b/Jenkinsfile index 732d434..1373e13 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,24 @@ pipeline{ agent any - stages{ + //properties([parameters([text(defaultValue: '1000', description: 'Number of lines', name: 'CUTOFF')])]) + stages { stage('checkout: Check out from version control'){ steps{ checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '321737ab-1c4d-475f-9667-513cf19ba596', url: 'https://git.wmi.amu.edu.pl/s434780/ium_434780.git']]]) } } + stage('docker') + { + steps{ + script{ + def img = docker.build('s434780/ium:1.0') + img.inside{ + sh './script.sh' + } + } + + } + } stage('sh: Shell Script'){ steps{ sh '''