Modified jenkinsfile
This commit is contained in:
parent
6e290c1549
commit
56db22a593
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user