35 lines
901 B
Groovy
35 lines
901 B
Groovy
pipeline {
|
|
agent {
|
|
docker { image 'shroomy/ium:2' }
|
|
}
|
|
parameters {
|
|
buildSelector(defaultSelector:
|
|
lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR')
|
|
}
|
|
stages {
|
|
stage('Test') {
|
|
steps {
|
|
sh 'cat /etc/issue'
|
|
}
|
|
}
|
|
stage("copyArtifacts"){
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true,
|
|
projectName: 's434695-create-dataset',
|
|
selector: buildParameter('BUILD_SELECTOR')
|
|
sh "chmod +x dataset_stats/stats.sh"
|
|
sh "dataset_stats/stats.sh"
|
|
archiveArtifacts "stats.txt"
|
|
}
|
|
}
|
|
stage('archiveArtifacts') {
|
|
steps {
|
|
archiveArtifacts 'stats.txt'
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|