This commit is contained in:
Wojciech Lidwin 2023-05-11 19:03:24 +02:00
parent 50a3d48a88
commit c0416be0a0

View File

@ -2,7 +2,6 @@ node {
stage('Preparation') { stage('Preparation') {
properties([ properties([
parameters([ parameters([
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
]) ])
]) ])
} }
@ -13,12 +12,12 @@ node {
stage('Dockerfile'){ stage('Dockerfile'){
def testImage = docker.image("ium") def testImage = docker.image("ium")
sh "chmod +x -R ${env.WORKSPACE}" sh "chmod +x -R ${env.WORKSPACE}"
testImage.inside("""-w=${WORKSPACE} """){ { testImage.inside{
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset' copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
sh "python3 train.py" sh "python3 train.py"
archiveArtifacts artifacts: 'baltimore_model3.pth' archiveArtifacts artifacts: 'baltimore_model3.pth'
}
} }
} }