new Jenkinsfile

This commit is contained in:
Szymon Parafiński 2022-03-30 12:44:29 +02:00
parent 5df5033501
commit ce40618c29

28
Docker/Jenkinsfile vendored
View File

@ -1,20 +1,34 @@
node { pipeline {
def app agent {
stage('Clone repository') { dockerfile {
cleanWs() filename 'Dockerfile'
checkout scm 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') { stage('Build image') {
steps {
app = docker.build("ium_docker", "./Docker/") app = docker.build("ium_docker", "./Docker/")
} }
}
stage('Split set into dev/train/test') { stage('Split set into dev/train/test') {
steps {
app.inside { app.inside {
sh 'cd ..'
sh 'ls -la' sh 'ls -la'
sh 'python3 ./Docker/script.py' sh 'python3 ./Docker/script.py'
} }
} }
}
}
} }