diff --git a/Jenkinsfile b/Jenkinsfile index 8382b7d..9afb883 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { steps { copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '8cdbf19a-e62d-4807-9112-bc7a8d225074', url: 'https://git.wmi.amu.edu.pl/s407608/s407608-mlworkshops']]]) - sh 'ssh my_shell_script.sh > results.txt' + sh 'sh my_shell_script.sh example.txt > results.txt' } } } diff --git a/my_shell_script.sh b/my_shell_script.sh index 500275d..4e82feb 100644 --- a/my_shell_script.sh +++ b/my_shell_script.sh @@ -1 +1,2 @@ -wc -l example.txt +file1=$1 +wc -l $file1