From 574e48a3d79ea938fcfee40ff7507a4ef99978ce Mon Sep 17 00:00:00 2001 From: Dawid Jurkiewicz Date: Fri, 3 Apr 2020 11:15:13 +0200 Subject: [PATCH] Add more stages --- Jenkinsfile | 9 +++++---- count_lines.sh | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 count_lines.sh diff --git a/Jenkinsfile b/Jenkinsfile index ffd6cc0..717f5e7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,11 @@ pipeline { agent any stages { - stage('Stage 1') { - steps { - echo 'Hello world!' - } + stage('Checkout') { + checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '8dbda16d-2863-4ee8-8662-3886a4862575', url: 'https://git.wmi.amu.edu.pl/dawjur/dawjur-mlworkshops']]]) + } + stage('Copy artifacts') { + copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() } } } \ No newline at end of file diff --git a/count_lines.sh b/count_lines.sh new file mode 100644 index 0000000..f8c7ec4 --- /dev/null +++ b/count_lines.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +wc -l $1