From 731e07c35671ebb07c1fc540c78d2ab97f30d35e Mon Sep 17 00:00:00 2001 From: Maciej Tyczynski Date: Wed, 19 Apr 2023 23:28:24 +0200 Subject: [PATCH] fixed jenkinsfiles --- Jenkinsfile | 9 +++------ Jenkinsfile-dataset_stats | 10 ++++------ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4b87fa2..952d1cd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,16 +1,13 @@ pipeline { - agent any + agent { + dockerfile true + } stages { stage('Clone repository') { steps { git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176' } } - stage('Docker'){ - agent { - dockerfile true - } - } stage('Run script') { steps { sh 'sh getdata.sh' diff --git a/Jenkinsfile-dataset_stats b/Jenkinsfile-dataset_stats index ae725f4..aa39581 100644 --- a/Jenkinsfile-dataset_stats +++ b/Jenkinsfile-dataset_stats @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + dockerfile true + } parameters{ buildSelector( defaultSelector: lastSuccessful(), @@ -12,11 +14,7 @@ pipeline { git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176' } } - stage('Docker'){ - agent { - dockerfile true - } - } + stage('Copy Artifacts') { steps { copyArtifacts(