From 56db22a59338030797289a3b2cba412eb086e798 Mon Sep 17 00:00:00 2001 From: Jakub Henyk Date: Tue, 4 Apr 2023 18:50:50 +0200 Subject: [PATCH] Modified jenkinsfile --- Jenkinsfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4d2060d..6336018 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + dockerfile true + } //Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania parameters { string ( @@ -13,8 +15,9 @@ pipeline { stage('Run Script') { steps { script { - sh "chmod +x -R ${env.WORKSPACE}" - sh './take_data.sh | tee output.txt' + //sh "chmod +x -R ${env.WORKSPACE}" + //sh './take_data.sh | tee output.txt' + sh 'node --version | tee output.txt' } }