ium_434695/dataset_stats/Jenkinsfile
2021-05-16 15:12:45 +02:00

44 lines
1.2 KiB
Groovy

pipeline {
agent {
docker { image 'shroomy/ium:2' }
}
options {
copyArtifactPermission('s434742-training, s434742-evaluation');
}
parameters {
buildSelector(defaultSelector:
lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
stages {
stage('Test') {
steps {
sh 'cat /etc/issue'
}
}
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'
}
}
stage("copyArtifacts"){
steps {
copyArtifacts fingerprintArtifacts: true,
projectName: 's434695-create-dataset',
selector: buildParameter('BUILD_SELECTOR')
sh "chmod +x dataset_stats/stats.sh"
sh "dataset_stats/stats.sh"
archiveArtifacts "stats.txt"
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'stats.txt'
}
}
}
}