Addded Jenkinsfile_2 ad make_statistic.sh

This commit is contained in:
Jakub Henyk 2023-03-28 13:31:04 +02:00
parent 85fb087785
commit 128d212ef5
2 changed files with 22 additions and 0 deletions

20
Jenkinsfile_2 Normal file
View 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
View File

@ -0,0 +1,2 @@
#!/bin/bash
echo "Hello World"