From 01f03013e9e374589536825d26805602df8b12d7 Mon Sep 17 00:00:00 2001 From: Natalia Szymczyk Date: Thu, 20 Apr 2023 23:25:19 +0200 Subject: [PATCH] script2 --- Jenkinsfile2 | 16 +++++++--------- script2.sh | 4 ++++ 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 script2.sh diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 8cbb398..7457b26 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -9,20 +9,18 @@ pipeline { } stage('CopyArtifacts'){ steps { - copyArtifacts fingerprintArtifacts: true, projectName: 'z-s487186-create-dataset', selector: buildParameter('BUILD_SELECTOR') + copyArtifacts fingerprintArtifacts: true, projectName: 'z-s487186-create-dataset', selector: lastSuccessful() } } stage('Script') { steps { - sh 'echo test' + sh './script2.sh > output.txt' + } + } + stage('ArchiveArtifacts') { + steps { + archiveArtifacts 'output.txt' } } - // stage('ArchiveArtifacts') { - // steps { - // archiveArtifacts 'liver.data.train' - // archiveArtifacts 'liver.data.test' - // archiveArtifacts 'liver.data.dev' - // } - // } } } \ No newline at end of file diff --git a/script2.sh b/script2.sh new file mode 100644 index 0000000..f405157 --- /dev/null +++ b/script2.sh @@ -0,0 +1,4 @@ +echo "Ilość linii w plikach:" +wc -l liver.data.train +wc -l liver.data.test +wc -l liver.data.dev