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-04-14 21:17:50 +02:00
|
|
|
docker.image("karopa/ium:03").inside {
|
2021-04-14 21:13:22 +02:00
|
|
|
stage('Test') {
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/stats']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
|
2021-04-14 21:22:48 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_SELECTOR")
|
2021-04-14 21:13:22 +02:00
|
|
|
sh '''
|
|
|
|
#!/usr/bin/env bash
|
2021-04-14 21:24:07 +02:00
|
|
|
chmod 777 get_stats.sh
|
|
|
|
./get_stats.sh | tee output.txt
|
2021-04-14 21:13:22 +02:00
|
|
|
'''
|
|
|
|
archiveArtifacts 'output.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-27 20:52:07 +01:00
|
|
|
}
|