Merge branch 'main' of github.com:fleschutz/PowerShell

This commit is contained in:
Markus Fleschutz 2024-01-02 14:39:14 +01:00
commit 4801e38d95

18
data/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,18 @@
pipeline { // requires Jenkins plugin 'PowerShell'
agent any // job may run on any Jenkins node
stages {
stage ('Cleanup') {
steps {
echo "Pulled from ${env.GIT_URL}, branch ${env.GIT_BRANCH}, commit {$env.GIT_COMMIT} ..."
sh 'git clean -d --force'
sh 'git status'
}
}
stage ('Health Check') {
steps {
echo "Starting build #${env.BUILD_NUMBER} on ${env.NODE_NAME} node ..."
powershell './scripts/check-health.ps1'
}
}
}
}