ium_z487183/JenkinsfileDatasetStats

35 lines
877 B
Plaintext
Raw Normal View History

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