ium_434695/dataset_stats/Jenkinsfile

35 lines
901 B
Plaintext
Raw Permalink Normal View History

2021-03-28 22:32:17 +02:00
pipeline {
2021-04-11 16:21:20 +02:00
agent {
2021-04-25 23:24:46 +02:00
docker { image 'shroomy/ium:2' }
2021-04-11 16:21:20 +02:00
}
2021-03-28 22:32:17 +02:00
parameters {
buildSelector(defaultSelector:
lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
stages {
2021-04-11 16:21:20 +02:00
stage('Test') {
steps {
sh 'cat /etc/issue'
}
}
2021-03-28 22:32:17 +02:00
stage("copyArtifacts"){
steps {
copyArtifacts fingerprintArtifacts: true,
projectName: 's434695-create-dataset',
selector: buildParameter('BUILD_SELECTOR')
2021-03-28 22:39:29 +02:00
sh "chmod +x dataset_stats/stats.sh"
sh "dataset_stats/stats.sh"
2021-03-28 22:32:17 +02:00
archiveArtifacts "stats.txt"
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'stats.txt'
2021-03-28 22:35:55 +02:00
}
2021-03-28 22:32:17 +02:00
}
}
2021-04-25 23:24:46 +02:00
}