ium_495719/JenkinsfileStats

45 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-03-27 02:58:23 +01:00
pipeline {
2024-04-02 21:02:03 +02:00
agent {
docker { image 'paweldopierala/ium:latest' }
}
2024-03-27 02:58:23 +01:00
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"
)
}
}
2024-03-27 03:05:16 +01:00
stage('Stats') {
2024-03-27 02:58:23 +01:00
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s495719-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
2024-03-27 03:10:44 +01:00
stage('Script') {
steps {
sh 'chmod 777 ./data_stats.sh'
sh "./data_stats.sh"
}
}
2024-03-27 02:58:23 +01:00
stage('Artifacts') {
steps {
2024-04-02 20:50:45 +02:00
script {
def artifactsList = ['hp_train_stats.csv', 'hp_dev_stats.csv', 'hp_test_stats.csv'']
artifactsList.each { artifact ->
archiveArtifacts artifacts: artifact
}
2024-04-02 20:45:01 +02:00
}
2024-03-27 02:58:23 +01:00
}
}
}
}