iumKC/JenkinsfileStats
Karol Cyganik 5ef84251e7 add stats
2024-03-26 20:24:03 +01:00

44 lines
1.1 KiB
Plaintext

pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
stages {
stage('Checkout') {
steps {
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
}
}
stage('Copy Artifacts') {
steps {
script {
copyArtifacts(
filter: 'football-semantic-segmentation.zip',
fingerprintArtifacts: true,
projectName: 'z-s495715-create-dataset',
selector: buildSelector
)
}
}
}
stage('Execute Script') {
steps {
sh './calculate_stats.sh'
}
}
stage('Archive Results') {
steps {
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
}
}
}
}