ium_434765/JenkinsfileStats

24 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2021-03-27 20:52:07 +01:00
node {
2021-03-27 22:34:06 +01:00
stage('Preparation') {
2021-03-27 20:52:07 +01:00
2021-03-27 20:49:51 +01:00
properties([
parameters([
2021-03-27 22:34:06 +01:00
buildSelector(defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
2021-03-27 20:49:51 +01:00
])
]
)
2021-03-27 20:52:07 +01:00
2021-03-27 19:38:42 +01:00
}
2021-03-27 18:48:24 +01:00
stage('Clone repo') {
2021-03-27 22:54:27 +01:00
checkout([$class: 'GitSCM', branches: [[name: '*/stats']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
2021-03-27 22:34:06 +01:00
copyArtifacts filter: 'data_shuf', fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_SELECTOR")
2021-03-27 21:03:24 +01:00
sh '''
#!/usr/bin/env bash
2021-03-27 22:42:21 +01:00
chmod 777 get_stats_simple.sh
2021-03-27 22:56:33 +01:00
./get_stats_simple.sh | tee output.txt
2021-03-27 21:03:24 +01:00
'''
2021-03-27 22:56:33 +01:00
archiveArtifacts 'output.txt'
2021-03-27 20:49:51 +01:00
}
2021-03-27 20:52:07 +01:00
}