20 lines
472 B
Plaintext
20 lines
472 B
Plaintext
|
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'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|