mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-26 16:48:54 +01:00
Added a Jenkinsfile to perform a health check
This commit is contained in:
parent
ee412a4013
commit
b272bb0073
18
scripts/Jenkinsfile
vendored
Normal file
18
scripts/Jenkinsfile
vendored
Normal 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 './check-health.ps1'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user