ium_444380/Jenkinsfile.stats

31 lines
1.0 KiB
Plaintext

pipeline {
agent {
docker { image 'kamilguttmann/ium:latest' }
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444380-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
/*stage("Checkout git") {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444380', url: 'https://git.wmi.amu.edu.pl/s444380/ium_444380.git']]])
}
}*/
stage("Calcualte statistics") {
steps {
sh "python3 calc_stats.py | tee crime.stats.txt"
archiveArtifacts artifacts: "crime.stats.txt", onlyIfSuccessful: true
}
}
}
}