ium_s437622/Jenkinsfile-stats
2021-05-15 18:18:35 +02:00

29 lines
915 B
Plaintext

pipeline{
agent any
properties([parameters([
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
])])
stages{
stage('checkout: Check out from version control'){
steps{
git credentialsId: 'b4ba8ec9-8fc6-4f68-bf24-695634cec73e', url: 'https://git.wmi.amu.edu.pl/s437622/ium_s437622.git'
}
}
stage('copy artifacts'){
copyArtifacts filter: 'dev.csv, train.csv, test.csv', fingerprintArtifacts: true, projectName: 's437622-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
stage('sh: Shell Script'){
steps{
./stats.sh
}
}
stage('Archive artifacts'){
steps{
archiveArtifacts 'stats.txt'
}
}
}
}