ium_464913/stats/Jenkinsfile

35 lines
797 B
Plaintext
Raw Normal View History

2024-03-24 12:13:05 +01:00
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Clone Repository') {
steps {
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464913/ium_464913.git'
}
}
stage('Copy Artifacts') {
steps {
2024-03-24 12:23:47 +01:00
copyArtifacts filter: 'data/*', projectName: 'z-s464913-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2024-03-24 12:13:05 +01:00
}
}
stage('Generate Report') {
steps {
sh 'chmod +x stats.sh'
sh './stats.sh'
}
}
stage('Archive Artifacts') {
steps {
2024-03-24 12:55:09 +01:00
archiveArtifacts artifacts: 'stats_data/*', onlyIfSuccessful: true
2024-03-24 12:13:05 +01:00
}
}
}
}