39 lines
990 B
Plaintext
39 lines
990 B
Plaintext
pipeline {
|
|
agent any
|
|
parameters{
|
|
choice(
|
|
choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'],
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR'
|
|
)}
|
|
stages {
|
|
stage('clear') {
|
|
steps {
|
|
sh 'rm -rf *'
|
|
}
|
|
}
|
|
stage('checkout') {
|
|
steps {
|
|
checkout scm
|
|
}
|
|
}
|
|
stage('copy_artifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s444510-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
stage('Docker') {
|
|
agent {
|
|
docker {
|
|
image 'piotrwrzodak/ium:2'
|
|
reuseNode true
|
|
}
|
|
}
|
|
steps {
|
|
sh 'ls -a'
|
|
sh 'python3 dataset-stats-new.py'
|
|
archiveArtifacts artifacts: 'stats.csv', fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
} |