ium_z444510/Jenkinsfile-dataset-stats-docker-hub
piotrwrzodak f1351c0b16 4.3.2 v1
2023-05-12 00:08:16 +02:00

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
}
}
}
}