ium_434784/stats/Jenkinsfile

30 lines
744 B
Plaintext
Raw Normal View History

2021-03-29 03:04:56 +02:00
pipeline {
agent any
2021-03-29 03:07:27 +02:00
stages {
2021-03-29 03:14:30 +02:00
2021-03-29 03:07:27 +02:00
stage('Copy Archive') {
steps {
script {
step ([$class: 'CopyArtifact',
projectName: 's434784-create-dataset',
selector: buildParameter('BUILD_SELECTOR'),
filter: "data*",
2021-03-29 03:22:39 +02:00
target: 'datasets']);
2021-03-29 03:07:27 +02:00
}
2021-03-29 03:04:56 +02:00
}
}
2021-03-29 03:11:41 +02:00
stage('sh: Shell Script'){
steps{
sh 'chmod +x stats/generate_stats.sh'
sh './stats/generate_stats.sh'
}
}
2021-03-29 03:24:35 +02:00
stage('archiveArtifacts'){
steps {
2021-03-29 03:23:55 +02:00
archiveArtifacts 'stats.txt'
}
}
2021-03-29 03:14:30 +02:00
}
}