40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
pipeline {
|
|
agent {
|
|
docker { image 'paweldopierala/ium:2.0.0' }
|
|
}
|
|
|
|
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 {
|
|
archiveArtifacts artifacts: 'hp_train_stats.csv,hp_dev_stats.csv,hp_test_stats.csv'
|
|
}
|
|
}
|
|
}
|
|
} |