update jenkinsfile2

This commit is contained in:
Maciej Czajka 2022-04-02 15:05:37 +02:00
parent d5a50a8d12
commit 19bdf868ea

View File

@ -1,15 +1,22 @@
pipeline {
agent {
docker {
image 'czajson99/ium:v1'
args '-it --entrypoint=/bin/bash'
agent {
docker { image 'maciejczajka/ium:v2' }
}
}
stages {
stage('Test') {
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 'BUILD_SELECTOR',
description: 'Which build to use for copying artifacts'
)
}
stages {
stage("Script") {
steps {
sh './download.sh'
copyArtifacts fingerprintArtifacts: true, projectName: 's444356-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh " ./stats.sh"
archiveArtifacts 'lines.txt'
}
}
}
}
}