Last active
April 16, 2021 00:37
-
-
Save marcelbirkner/0a4959e74c0c806c00f8 to your computer and use it in GitHub Desktop.
jenkins-job-dsl-confluence-publisher-configure-block
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Jenkins Job DSL configure block for Confluence Publisher | |
* Open Feature Request, see https://issues.jenkins-ci.org/browse/JENKINS-31786 | |
* | |
* siteName = Link to your Confluence Installation | |
* spaceName = Confluence Space | |
* pageName = Confluence Page Name | |
* | |
*/ | |
job('confluence-publisher-job') { | |
configure { project -> | |
project / publishers << 'com.myyearbook.hudson.plugins.confluence.ConfluencePublisher' { | |
siteName 'confluence.company.com' | |
attachArchivedArtifacts 'false' | |
buildIfUnstable 'false' | |
spaceName 'TEST' | |
pageName 'Jenkins Confluence Publisher Integration Test' | |
editors { | |
'com.myyearbook.hudson.plugins.confluence.wiki.editors.PrependEditor' { | |
generator(class: "com.myyearbook.hudson.plugins.confluence.wiki.generators.PlainTextGenerator") { | |
text 'Jenkins Publisher Job Build Number: $BUILD_NUMBER' | |
} | |
} | |
'com.myyearbook.hudson.plugins.confluence.wiki.editors.AppendEditor' { | |
generator(class: "com.myyearbook.hudson.plugins.confluence.wiki.generators.PlainTextGenerator") { | |
text 'Jenkins Publisher Job Build Number: $BUILD_NUMBER' | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment