From 1ba55b36bdd7a07066bc64dd2835ef7f78669487 Mon Sep 17 00:00:00 2001 From: Dawid Date: Sun, 28 Mar 2021 21:05:05 +0200 Subject: [PATCH] edit Jenkinsfile --- Jenkinsfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 396b16d..81faa4d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline{ agent any parameters { - string(defaultValue: '100', description: 'Number of lines to cutoff', name: 'CUTOFF', trim: false) + string(defaultValue: '5', description: 'Number of lines to cutoff', name: 'CUTOFF', trim: false) } stages{ stage('Stage 1'){ @@ -16,12 +16,11 @@ pipeline{ } stage('sh: Shell Script'){ steps{ - withEnv(["CUTOFF=${params.CUTOFF}"]) { - sh "chmod 777 ./script.sh" - ./data.sh - } + withEnv(["CUTOFF=${params.CUTOFF}"]) { + sh "chmod 777 ./script.sh" + ./data.sh } - } + }} stage('Archive artifacts'){ steps{ archiveArtifacts 'test.csv'