Update Jenkinsfile

This commit is contained in:
Agata 2022-04-29 19:56:35 +02:00
parent 7e092b3a64
commit a866992b19

View File

@ -17,13 +17,12 @@ pipeline {
stages {
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444421', url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]])
checkout([$class: 'GitSCM', branches: [[name: '*/training_and_evaluation']], extensions: [], userRemoteConfigs: [[credentialsId: 's444421', url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]])
}
}
stage('Script') {
steps {
copyArtifacts filter: '*', projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod u+x ./training.py'
sh 'ipython ./training.py $EPOCHS'
archiveArtifacts artifacts: 'model.pth'
}