Use Docker Hub image
This commit is contained in:
parent
e27ad69857
commit
7ae3e52844
14
Jenkinsfile2
14
Jenkinsfile2
@ -1,11 +1,8 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
docker {image 'agakul/ium:2.0'}
|
||||||
|
}
|
||||||
parameters {
|
parameters {
|
||||||
buildSelector(
|
|
||||||
defaultSelector: lastSuccessful(),
|
|
||||||
description: 'Which build to use for copying artifacts',
|
|
||||||
name: 'BUILD_SELECTOR'
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Check out from version control') {
|
stage('Check out from version control') {
|
||||||
@ -15,10 +12,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Shell Script') {
|
stage('Shell Script') {
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts fingerprintArtifacts: true, projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
sh 'python3 ./preparation.py'
|
||||||
sh 'chmod u+x ./get_stats.sh'
|
|
||||||
sh './get_stats.sh'
|
|
||||||
archiveArtifacts 'stats.txt'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user