ium_430705/Jenkinsfile_training
michalzareba 153e5e16f9
Some checks failed
s430705-training/pipeline/head There was a failure building this commit
add zip to include all files
2021-05-10 19:56:51 +02:00

34 lines
1.0 KiB
Plaintext

pipeline {
agent {dockerfile true}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
stages {
stage('copyArtifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'python3 lab06_training.py'
sh 'ls -l'
sh 'pwd'
}
}
stage('Archive artifacts') {
steps{
sh 'zip /var/lib/jenkins/workspace/s430705-training_master/model.zip /var/lib/jenkins/workspace/s430705-training_master/model_movies'
archiveArtifacts '/var/lib/jenkins/workspace/s430705-training_master/model.zip'
}
}
stage('Send notification'){
steps{
emailext body: currentBuild.result ?: 'SUCCESS +1 YEA',
subject: 's43705',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}