new Jenkinsfile

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

46
Docker/Jenkinsfile vendored
View File

@ -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'
}
}
}
}
}
}
}