ium_444463/Jenkinsfile

30 lines
914 B
Plaintext
Raw Normal View History

2022-04-23 17:15:28 +02:00
pipeline {
agent {
2022-05-03 15:30:24 +02:00
dockerfile true
2022-04-23 17:15:28 +02:00
}
parameters {
string (
2022-05-03 15:30:24 +02:00
defaultValue: '10',
description: 'Epochs number',
name: 'EPOCH',
2022-04-23 17:15:28 +02:00
trim: false
)
}
stages {
stage('checkout: Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]])
}
}
stage('bash script') {
steps {
2022-05-03 16:47:09 +02:00
withEnv(["EPOCH=${params.EPOCH}"]) {
2022-05-03 15:30:24 +02:00
copyArtifacts filter: '*', projectName: 's444463-create-dataset'
2022-05-03 16:38:46 +02:00
sh 'python3 ./deepl.py $EPOCH'
2022-05-03 15:30:24 +02:00
archiveArtifacts artifacts: "model"
2022-04-23 17:15:28 +02:00
}
}
}
}
}