diff --git a/Docker/Jenkinsfile b/Docker/Jenkinsfile index 611704d..e885795 100644 --- a/Docker/Jenkinsfile +++ b/Docker/Jenkinsfile @@ -1,20 +1,34 @@ -node { - def app - stage('Clone repository') { - cleanWs() - checkout scm - } - - stage('Build image') { - - app = docker.build("ium_docker", "./Docker/") - } - - stage('Split set into dev/train/test') { +pipeline { + agent { + dockerfile { + filename 'Dockerfile' + dir 'Docker' + label 'ium_docker' + } + } + + stages { + + stage('Check out from version control') { + steps { + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444018', url: 'https://git.wmi.amu.edu.pl/s444018/ium_444018.git']]]) + } + } + + stage('Build image') { + steps { + app = docker.build("ium_docker", "./Docker/") + } + } + + stage('Split set into dev/train/test') { + steps { app.inside { - sh 'cd ..' sh 'ls -la' sh 'python3 ./Docker/script.py' - } - } + } + } + } + + } } \ No newline at end of file