ium_444463/Jenkinsfile.stats
Mikołaj Pokrywka 0a02a1a6d6 wip
2022-03-27 22:31:43 +02:00

30 lines
1005 B
Plaintext

pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('checkout: Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]])
}
}
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444463-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage("Calcualte stats") {
steps {
sh "chmod +x -R" "./stats.sh"
sh "./stats.sh"
archiveArtifacts artifacts: "stats.txt"
}
}
}
}