Addded Jenkinsfile_2 ad make_statistic.sh
This commit is contained in:
parent
85fb087785
commit
128d212ef5
20
Jenkinsfile_2
Normal file
20
Jenkinsfile_2
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
//Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania
|
||||||
|
stages {
|
||||||
|
stage('Run Script') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
sh "chmod +x -R ${env.WORKSPACE}"
|
||||||
|
sh './make_statistic.sh | tee output.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
stage('Archive Output') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts 'output.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
2
make_statistic.sh
Normal file
2
make_statistic.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "Hello World"
|
Loading…
Reference in New Issue
Block a user