ium_495719/JenkinsfileSacred
PawelDopierala 52ede7236e Do sacred
2024-06-12 12:01:14 +02:00

44 lines
1.1 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
triggers {
upstream(upstreamProjects: 'z-s495719-create-dataset', threshold: hudson.model.Result.SUCCESS)
}
stages {
stage('Git') {
steps {
git(
url: "https://git.wmi.amu.edu.pl/s495719/ium_495719.git",
branch: "main"
)
}
}
stage('CopyArtifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s495719-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Script') {
steps {
sh 'chmod 777 sacred/create_model.py'
sh "python3 sacred/create_model.py"
}
}
stage('CreateArtifacts') {
steps {
archiveArtifacts artifacts: 'sacred/hp_model.h5'
}
}
}
}