From 6ded7a13947682fe02dc9877fbe4f0f83a9a84b3 Mon Sep 17 00:00:00 2001 From: Ufnow Date: Tue, 21 Apr 2020 20:55:53 +0200 Subject: [PATCH] we --- Jenkinsfile | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3a47050..832e558 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,25 +1,17 @@ pipeline { agent any stages { - stage('checkout: Check out from version control') { + stage('Checkout') { steps { - git branch: 'master', - url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops.git' + checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops']]]) } } - stage('Copy Archive') { - steps { - script { - step ([$class: 'CopyArtifact', - filter: "wikiniews_results.tsv", - target: 'wikiniews_results.tsv', - fingerprintArtifacts: true, - projectName: 'ASR-eval', - selector: lastSuccessful()]); - } - } - } - stage('Count lines'){ + stage('Copy artifacts'){ + steps { + copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() + } + } + stage('Count lines and metrics'){ steps { sh('chmod +x ./script.sh') sh('./script.sh') @@ -31,4 +23,4 @@ pipeline { } } } - } +}