2021-05-15 18:19:27 +02:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
2021-05-15 22:45:51 +02:00
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
|
|
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
2021-05-15 18:19:27 +02:00
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('copy files') {
|
|
|
|
agent any
|
|
|
|
steps {
|
|
|
|
sh '''
|
2021-05-15 19:35:54 +02:00
|
|
|
cp ./lab5/eval/Dockerfile .
|
|
|
|
cp ./lab5/eval/script.sh .
|
|
|
|
cp ./lab5/eval/eval.py .
|
|
|
|
cp ./lab5/eval/requirements.txt .
|
2021-05-15 18:19:27 +02:00
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('docker') {
|
|
|
|
agent { dockerfile true }
|
|
|
|
stages {
|
|
|
|
stage('copyArtifacts') {
|
2021-05-15 19:59:46 +02:00
|
|
|
steps {
|
2021-05-15 22:45:51 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true,
|
|
|
|
projectName: 's470607-create-dataset',
|
|
|
|
selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
copyArtifacts fingerprintArtifacts: true,
|
|
|
|
projectName: 's470607-training/${params.BRANCH}',
|
|
|
|
selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
copyArtifacts fingerprintArtifacts: true,
|
|
|
|
optional: true,
|
|
|
|
projectName: 's470607-evaluation/${params.BRANCH}',
|
|
|
|
selector: buildParameter('BUILD_SELECTOR')
|
2021-05-15 18:19:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('ls') {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
chmod +x script.sh
|
|
|
|
ls -lah
|
|
|
|
./script.sh
|
|
|
|
ls -lah
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archive artifact') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'eval.csv'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|