ium_434695/dataset_stats/Jenkinsfile

44 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-03-28 22:32:17 +02:00
pipeline {
2021-04-11 16:21:20 +02:00
agent {
2021-04-25 23:24:46 +02:00
docker { image 'shroomy/ium:2' }
2021-04-11 16:21:20 +02:00
}
2021-05-15 19:25:09 +02:00
options {
copyArtifactPermission('s434742-training, s434742-evaluation');
}
2021-03-28 22:32:17 +02:00
parameters {
buildSelector(defaultSelector:
lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
stages {
2021-04-11 16:21:20 +02:00
stage('Test') {
steps {
sh 'cat /etc/issue'
}
}
2021-05-16 15:12:45 +02:00
stage('checkout: Check out from version control') {
steps {
git credentialsId: 'f746c8e0-e974-4758-838d-1920a7b0e3dc', url: 'https://git.wmi.amu.edu.pl/s434695/ium_434695.git'
}
}
2021-03-28 22:32:17 +02:00
stage("copyArtifacts"){
steps {
copyArtifacts fingerprintArtifacts: true,
projectName: 's434695-create-dataset',
selector: buildParameter('BUILD_SELECTOR')
2021-03-28 22:39:29 +02:00
sh "chmod +x dataset_stats/stats.sh"
sh "dataset_stats/stats.sh"
2021-03-28 22:32:17 +02:00
archiveArtifacts "stats.txt"
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'stats.txt'
2021-03-28 22:35:55 +02:00
}
2021-03-28 22:32:17 +02:00
}
}
2021-04-25 23:24:46 +02:00
}