From 1f93ba7270399c561a7010575bc3ed40d12be76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriela=20Pa=C5=82ka?= Date: Fri, 3 Apr 2020 12:39:57 +0200 Subject: [PATCH] Add solution for Jenkins --- Jenkinsfile | 5 ++++- script.sh | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 script.sh diff --git a/Jenkinsfile b/Jenkinsfile index e7d04ab..3423d6a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,10 @@ pipeline { stages { stage('Stage 1') { steps { - echo 'Hello world!' + checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s407599/s407599-mlworkshops']]]) + copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval/' + sh label: '', script: 'script.sh wikiniews_results.tsv' + archiveArtifacts 'results.txt' } } } diff --git a/script.sh b/script.sh new file mode 100755 index 0000000..190bfa7 --- /dev/null +++ b/script.sh @@ -0,0 +1,3 @@ +#/bin/bash + +wc -l $1 > results.txt \ No newline at end of file