Jenkinsfile for stats gen

This commit is contained in:
s478841 2022-03-28 00:22:45 +02:00
parent 7c909f817c
commit 73a1cf6458

26
Jenkinstats Normal file
View File

@ -0,0 +1,26 @@
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [
[url: 'https://git.wmi.amu.edu.pl/s478841/ium_478841.git']]])
}
}
stage('Copy Artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's478841-create-dataset', selector: lastSuccessful()
}
}
stage('sh: Shell Script') {
steps {
sh './data-stats.sh'
}
}
stage('Archive artifacts') {
steps {
archiveArtifacts artifacts: 'stats.txt', followSymlinks: false
}
}
}
}