ium_434765/JenkinsfileEval

39 lines
2.0 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',
2021-05-20 19:25:54 +02:00
name: 'BUILD_MODEL'),
gitParameter(branchFilter: 'origin/(.*)',
defaultValue: 'master',
name: 'BRANCH',
type: 'PT_BRANCH')
])
2021-05-17 22:22:29 +02:00
]
)
}
2021-05-17 22:15:30 +02:00
stage('Clone repo') {
2021-05-20 18:34:51 +02:00
docker.image("karopa/ium:16").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")
2021-05-20 19:27:25 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: 's434765-training/' + params.BRANCH + '/', 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
}
}
}
}