ium_495719/JenkinsfileStats
2024-04-02 20:45:01 +02:00

41 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('Git') {
steps {
git(
url: "https://git.wmi.amu.edu.pl/s495719/ium_495719.git",
branch: "main"
)
}
}
stage('Stats') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s495719-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Script') {
steps {
sh 'chmod 777 ./data_stats.sh'
sh "./data_stats.sh"
}
}
stage('Artifacts') {
steps {
def artifactsList = ['hp_train_stats.csv', 'hp_dev_stats.csv', 'hp_test_stats.csv'']
artifactsList.each { artifact ->
archiveArtifacts artifacts: artifact
}
}
}
}
}