Jenkinsfile update #wip
Some checks failed
s434780-evaluation/pipeline/head There was a failure building this commit
s434780-training/pipeline/head There was a failure building this commit

This commit is contained in:
sadurska@trui.pl 2021-05-16 23:10:33 +02:00
parent f4e07d4b1d
commit 5d94421172
5 changed files with 62 additions and 39667 deletions

View File

@ -0,0 +1,59 @@
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying train artifacts',
name: 'BUILD_SELECTOR_Train')
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying evaluation artifacts',
name: 'BUILD_SELECTOR_Evaluation')
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
stages {
stage('copy artifacts'){
steps {
copyArtifacts(fingerprintArtifacts: true, projectName: 's434780-create-dataset', selector: buildParameter('BUILD_SELECTOR'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's434780-training/master', selector: buildParameter('BUILD_SELECTOR_Train'))
copyArtifacts(fingerprintArtifacts: true, optional:true, projectName: 's434780-evaluation/master', selector: buildParameter('BUILD_SELECTOR_Evaluation'))
}
}
stage('evaluation') {
steps {
script {
def img = docker.build('s434780/ium:1.0')
img.inside {
'''
chmod +x eval-tensorflow.py
./eval-tensorflow.py'''
}
}
}
}
stage('archiveArtifacts') {
steps{
archiveArtifacts 'evaluation.txt'
}
}
}
post {
success {
emailext body: 'Success', subject: 's434780 evaluation', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'Failed', subject: 's434780 evaluation', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}

View File

@ -17,8 +17,9 @@ pipeline {
script { script {
def img = docker.build('s434780/ium:1.0') def img = docker.build('s434780/ium:1.0')
img.inside { img.inside {
sh 'chmod +x train-tensorflow.py' '''
sh 'python3 ./train-tensorflow.py' chmod +x train-tensorflow.py
./train-tensorflow.py'''
} }
} }
} }

28333
data.csv

File diff suppressed because one or more lines are too long

5668
dev.csv

File diff suppressed because one or more lines are too long

5664
test.csv

File diff suppressed because it is too large Load Diff