Upload files to "/"

This commit is contained in:
s464962 2024-03-26 22:51:02 +01:00
parent b5477c6b59
commit a2032d4545
1 changed files with 51 additions and 0 deletions

51
Jenkinsfile-stats Normal file
View File

@ -0,0 +1,51 @@
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
string(
defaultValue: '1000',
description: 'CUTOFF',
name: 'CUTOFF',
trim: false
)
}
stages {
stage('Copy artifacts') {
steps {
script {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
post {
success {
echo 'Artifacts copied successfully.'
}
}
}
stage('Set execute permission') {
steps {
script {
sh 'chmod +x dataset-stats.sh'
}
}
}
stage('Run shell script') {
steps {
script {
sh './dataset-stats.sh'
}
}
post {
success {
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
}
}
}
}
}