Modified jenkinsfile

This commit is contained in:
Jakub Henyk 2023-04-04 18:50:50 +02:00
parent 6e290c1549
commit 56db22a593

9
Jenkinsfile vendored
View File

@ -1,5 +1,7 @@
pipeline { pipeline {
agent any agent {
dockerfile true
}
//Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania //Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania
parameters { parameters {
string ( string (
@ -13,8 +15,9 @@ pipeline {
stage('Run Script') { stage('Run Script') {
steps { steps {
script { script {
sh "chmod +x -R ${env.WORKSPACE}" //sh "chmod +x -R ${env.WORKSPACE}"
sh './take_data.sh | tee output.txt' //sh './take_data.sh | tee output.txt'
sh 'node --version | tee output.txt'
} }
} }