ium_434765/JenkinsfileEval

35 lines
1.8 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-20 18:30:31 +02:00
docker.image("karopa/ium:14").inside {
2021-05-17 22:15:30 +02:00
stage('Test') {
2021-05-20 18:10:44 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/evaluation']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
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-20 18:26:27 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: 's434765-evaluation/evaluation/', selector: lastSuccessful()
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'
2021-05-20 18:19:54 +02:00
archiveArtifacts 'rmse.txt'
2021-05-17 22:15:30 +02:00
}
}
}
}