2024-03-27 02:58:23 +01:00
|
|
|
pipeline {
|
2024-04-02 21:02:03 +02:00
|
|
|
agent {
|
2024-04-02 23:28:13 +02:00
|
|
|
docker { image 'paweldopierala/ium:1.0.0' }
|
2024-04-02 21:02:03 +02:00
|
|
|
}
|
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 21:32:37 +02:00
|
|
|
archiveArtifacts artifacts: 'hp_train_stats.csv,hp_dev_stats.csv,hp_test_stats.csv'
|
2024-03-27 02:58:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|