ium_z487183/JenkinsfileDatasetStats

35 lines
877 B
Plaintext

pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Checkout') {
steps {
checkout scmGit(
branches: [[name: '*/master']],
extensions: [cleanBeforeCheckout()],
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s487183/ium_z487183.git']]
)
}
}
stage('Prepare stats') {
agent {
docker {
image 'mmoryl/ium:latest'
reuseNode true
}
}
steps {
copyArtifacts projectName: 'z487183-create-dataset'
sh './prepare-stats.sh'
archiveArtifacts 'stats.txt'
}
}
}
}