ium_434765/JenkinsfileEval

32 lines
1.4 KiB
Plaintext
Raw Normal View History

2021-05-17 22:15:30 +02:00
node {
2021-05-17 22:22:29 +02:00
stage('Preparation') {
properties([
parameters([
buildSelector(defaultSelector: lastSuccessful(),
description: 'Which build to use for copying datasets',
name: 'BUILD_DATASET'),
buildSelector(defaultSelector: lastSuccessful(),
description: 'Which build to use for copying model',
name: 'BUILD_MODEL')
])
]
)
}
2021-05-17 22:15:30 +02:00
stage('Clone repo') {
2021-05-17 22:53:32 +02:00
docker.image("karopa/ium:12").inside {
2021-05-17 22:15:30 +02:00
stage('Test') {
2021-05-17 22:48:55 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_DATASET")
copyArtifacts fingerprintArtifacts: true, projectName: 's434765-training/master/', selector: buildParameter("BUILD_MODEL")
2021-05-17 22:15:30 +02:00
sh '''
#!/usr/bin/env bash
2021-05-17 22:50:03 +02:00
chmod 777 evaluate_network.py
python3 evaluate_network.py | tee output.txt
2021-05-17 22:15:30 +02:00
'''
archiveArtifacts 'output.txt'
}
}
}
}