33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
pipeline {
|
|
agent {
|
|
docker {
|
|
image 's444465/ium:v1'
|
|
}
|
|
}
|
|
parameters {
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Copy artifacts') {
|
|
steps {
|
|
copyArtifacts filter: 'heart_2020_test.csv, heart_2020_train.csv, heart_2020_sorted.csv', fingerprintArtifacts: true, projectName: 's444465-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
stage("Git clone"){
|
|
steps{
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
|
|
}
|
|
}
|
|
stage("sh: Shell Script") {
|
|
steps {
|
|
sh "chmod 777 dataset_stats.sh"
|
|
sh "./dataset_stats.sh | tee stats.txt"
|
|
archiveArtifacts artifacts: "stats.txt", onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
} |