PowerShell/data/Jenkinsfile

19 lines
562 B
Plaintext
Raw Normal View History

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} ..."
2024-01-05 11:49:46 +01:00
sh 'git clean -xdf'
sh 'git status'
}
}
stage ('Health Check') {
steps {
echo "Starting build #${env.BUILD_NUMBER} on ${env.NODE_NAME} node ..."
2024-01-02 11:56:10 +01:00
powershell './scripts/check-health.ps1'
}
}
}
}