.
This commit is contained in:
parent
b7068af19e
commit
fc056c2c4b
@ -1,29 +1,28 @@
|
|||||||
pipeline {
|
node {
|
||||||
agent any
|
stage('Preparation') {
|
||||||
parameters {
|
properties([
|
||||||
buildSelector(
|
parameters([
|
||||||
defaultSelector: lastSuccessful(),
|
buildSelector(
|
||||||
description: 'Which build to use for copying artifacts',
|
defaultSelector: lastSuccessful(),
|
||||||
name: 'BUILD_SELECTOR'
|
description: 'Which build to use for copying artifacts',
|
||||||
)
|
name: 'BUILD_SELECTOR'
|
||||||
|
)
|
||||||
|
])
|
||||||
|
])
|
||||||
|
}
|
||||||
|
stage('checkout: Check out from version control') {
|
||||||
|
checkout scm
|
||||||
}
|
}
|
||||||
stages {
|
|
||||||
stage('Copy Artifacts') {
|
|
||||||
steps {
|
|
||||||
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s444510-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Calculate Dataset Statistics') {
|
stage('Copy Artifacts') {
|
||||||
steps {
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s444510-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
sh 'chmod +x dataset-stats.sh'
|
|
||||||
sh './dataset-stats.sh'
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
archiveArtifacts artifacts: 'stats.txt', fingerprint: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
stage('Calculate Dataset Statistics') {
|
||||||
|
sh 'chmod +x dataset-stats.sh'
|
||||||
|
sh './dataset-stats.sh'
|
||||||
|
}
|
||||||
|
stage('Save artefact') {
|
||||||
|
archiveArtifacts artifacts: 'stats.txt', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
head barcelona_weekends.dev.csv
|
||||||
cat barcelona_weekends.dev.csv | wc -l > stats.txt
|
cat barcelona_weekends.dev.csv | wc -l > stats.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user