From 73a1cf645882d2496d5a35f084941de35474c7af Mon Sep 17 00:00:00 2001 From: s478841 Date: Mon, 28 Mar 2022 00:22:45 +0200 Subject: [PATCH] Jenkinsfile for stats gen --- Jenkinstats | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Jenkinstats diff --git a/Jenkinstats b/Jenkinstats new file mode 100644 index 0000000..e9636f9 --- /dev/null +++ b/Jenkinstats @@ -0,0 +1,26 @@ +pipeline { + agent any + stages { + stage('Checkout') { + steps { + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [ + [url: 'https://git.wmi.amu.edu.pl/s478841/ium_478841.git']]]) + } + } + stage('Copy Artifacts') { + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 's478841-create-dataset', selector: lastSuccessful() + } + } + stage('sh: Shell Script') { + steps { + sh './data-stats.sh' + } + } + stage('Archive artifacts') { + steps { + archiveArtifacts artifacts: 'stats.txt', followSymlinks: false + } + } + } +} \ No newline at end of file