ium_444463/Jenkinsfile

30 lines
916 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 15:30:24 +02:00
withEnv(["EPOCH=${params.CUTOFF}"]) {
copyArtifacts filter: '*', projectName: 's444463-create-dataset'
sh 'python3 ./deepl.py $EPOCHS'
archiveArtifacts artifacts: "model"
2022-04-23 17:15:28 +02:00
}
}
}
}
}