mirror of
https://github.com/gutmensch/docker-dmarc-report.git
synced 2025-12-17 09:45:58 +00:00
echo repo url
This commit is contained in:
parent
28e21af0f5
commit
3da8a5ff63
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -11,12 +11,12 @@ properties([
|
||||
|
||||
node {
|
||||
try {
|
||||
setBuildStatus('build started', 'PENDING')
|
||||
setBuildStatus('In progress...', 'PENDING')
|
||||
pipeline()
|
||||
setBuildStatus('build succeeded', 'SUCCESS')
|
||||
setBuildStatus('Success', 'SUCCESS')
|
||||
}
|
||||
catch(e) {
|
||||
setBuildStatus('build failed', 'FAILURE')
|
||||
setBuildStatus(e.take(140), 'FAILURE')
|
||||
throw e
|
||||
}
|
||||
finally {
|
||||
@ -24,6 +24,8 @@ node {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// --- helper functions ---
|
||||
def pipeline() {
|
||||
stage('checkout') {
|
||||
checkout scm
|
||||
@ -58,6 +60,7 @@ def cleanup() {
|
||||
|
||||
void setBuildStatus(message, state) {
|
||||
def repoUrl = sh(script: 'git config --get remote.origin.url', returnStdout: true).trim()
|
||||
echo repoUrl
|
||||
step([
|
||||
$class: "GitHubCommitStatusSetter",
|
||||
reposSource: [$class: "ManuallyEnteredRepositorySource", url: repoUrl],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user