ium_z444510/Jenkinsfile-dataset-stats-docker-hub

39 lines
990 B
Plaintext
Raw Permalink Normal View History

2023-05-12 00:08:16 +02:00
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
}
}
}
}