From 5b3d557ed16646b7e44f008740c1f4fb86715d7b Mon Sep 17 00:00:00 2001 From: s416122 Date: Fri, 3 Apr 2020 13:43:26 +0200 Subject: [PATCH] Jenkinsfile - v.4 + shell_script update --- Jenkinsfile | 7 +++++++ shell_script.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d3ea79b..51f2165 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,5 +12,12 @@ pipeline { copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './s416122-mlworkshops' } } + stage('sh: Shell Script') { + steps { + sh('chmod +x ./shell_script.sh') + sh('./shell_script.sh wikiniews_results.tsv > result.txt') + } + } + } } diff --git a/shell_script.sh b/shell_script.sh index 9a3f683..951ba43 100644 --- a/shell_script.sh +++ b/shell_script.sh @@ -1,3 +1,3 @@ #!/bin/bash -wc -l > result.log \ No newline at end of file +wc -l $1 \ No newline at end of file