From af1fcfb1a7e71f52a7300ce65228572ea9a894e4 Mon Sep 17 00:00:00 2001 From: Cezary Date: Mon, 20 Apr 2020 23:20:52 +0200 Subject: [PATCH] first commit --- Jenkinsfile | 26 ++++++++++++++++++++++++++ README.md | 1 + count_lines.sh | 3 +++ 3 files changed, 30 insertions(+) create mode 100644 Jenkinsfile create mode 100644 README.md create mode 100644 count_lines.sh diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..1d5ac21 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,26 @@ +pipeline { + agent { dockerfile true } + stages { + stage('checkoutGit') { + steps { + git 'https://git.wmi.amu.edu.pl/s432211/s432211-mlworkshops' + } + } + stage('copyArtifacts') { + steps { + copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './' + } + } + stage('countLines') { + steps { + sh 'chmod 777 ./count_lines.sh' + sh './count_lines.sh' + } + } + stage('archiveArtifacts') { + steps { + archiveArtifacts 'count_lines_result.txt' + } + } + } +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5313260 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +s432211 - MLWorkshops \ No newline at end of file diff --git a/count_lines.sh b/count_lines.sh new file mode 100644 index 0000000..e4ac4b3 --- /dev/null +++ b/count_lines.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +wc -l wikiniews_results.tsv > counted_lines.txt \ No newline at end of file