38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
|
pipeline {
|
||
|
agent {
|
||
|
dockerfile true
|
||
|
}
|
||
|
parameters {
|
||
|
string(
|
||
|
defaultValue: '200',
|
||
|
description: 'number of epochs',
|
||
|
name: 'EPOCH'
|
||
|
)
|
||
|
}
|
||
|
|
||
|
stages {
|
||
|
stage('Stage 1') {
|
||
|
steps {
|
||
|
echo 'Hello world!'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
stage('Copy from different Pipeline') {
|
||
|
steps {
|
||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: lastSuccessful(),
|
||
|
copyArtifacts fingerprintArtifacts: true, projectName: '444517-training/master', selector: lastSuccessful()
|
||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444517-evaluation/master', selector: lastSuccessful(), optional: true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
stage('Get data save artifacts') {
|
||
|
steps {
|
||
|
sh 'python3 ./nn_train_eval.py'
|
||
|
archiveArtifacts artifacts: 'my_model/saved_model.pb, metrics.txt'
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|