32 lines
795 B
Groovy
32 lines
795 B
Groovy
pipeline {
|
|
agent {
|
|
docker {image 'maciejsobkowiak/ium:1'}
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Copy Archive') {
|
|
steps {
|
|
script {
|
|
step ([$class: 'CopyArtifact',
|
|
projectName: 's434784-create-dataset',
|
|
selector: buildParameter('BUILD_SELECTOR'),
|
|
filter: "data*",
|
|
target: 'datasets']);
|
|
}
|
|
}
|
|
}
|
|
stage('sh: Shell Script'){
|
|
steps{
|
|
sh 'chmod +x stats/generate_stats.sh'
|
|
sh './stats/generate_stats.sh'
|
|
}
|
|
}
|
|
stage('archiveArtifacts'){
|
|
steps {
|
|
archiveArtifacts 'stats.txt'
|
|
}
|
|
}
|
|
}
|
|
}
|