Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# CloudBees Pipeline Templates Example
## Multibranch Pipeline Authentication for a Bitbucket Server

This example shows how to add authentication to Bitbucket.org. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core, and Pipeline Templates then use the developer's value to replace the placeholder variable in the Jenkinsfile.
This example shows how to add authentication to a Bitbucket server. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core, and Pipeline Templates then use the developer's value to replace the placeholder variable in the Jenkinsfile.

````
multibranch:
branchSource:
bitbucket:
remote: https://bitbucket.beescloud.com
remote: https://bitbucket.example.com
repoOwner: myCompany
repository: ${repoName}
credentialsId: my-team-bitbucket-credentials
````
````
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CloudBees Pipeline Templates Example
## Multibranch Pipeline Authentication for a Git Server

This example shows how to add authentication to Bitbucket.org. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core, and Pipeline Templates then use the developer's value to replace the placeholder variable in the Jenkinsfile.
This example shows how to add authentication to your Git server. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core, and Pipeline Templates then use the developer's value to replace the placeholder variable in the Jenkinsfile.

````
multibranch:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CloudBees Pipeline Templates Example
## Multibranch Pipeline Authentication for Github.com

This example shows how to add authentication to Bitbucket.org. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core, and Pipeline Templates then use the developer's value to replace the placeholder variable in the Jenkinsfile.
This example shows how to add authentication to Github.com. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core, and Pipeline Templates then use the developer's value to replace the placeholder variable in the Jenkinsfile.

````
multibranch:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# CloudBees Pipeline Templates Example
## Multibranch Pipeline Authentication for Github Enterprise

This example shows how to add authentication to Bitbucket.org. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core, and Pipeline Templates then use the developer's value to replace the placeholder variable in the Jenkinsfile.
This example shows how to add authentication to your Github Enterprise instance. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core, and Pipeline Templates then use the developer's value to replace the placeholder variable in the Jenkinsfile.

````
multibranch:
branchSource:
github:
apiUrl: https://github.beescloud.com/api/v3
apiUrl: https://github.mycompany.com/api/v3
Comment thread
jpbriend marked this conversation as resolved.
repoOwner: myCompany
repository: ${repoName}
credentialsId: my-team-github-credentials
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ pipeline {

post {

// Email Ext plugin:
success {

emailext (
subject: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """<p>SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':</p>
<p>Check console output at &QUOT;<a href='${env.BUILD_URL}'>${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>&QUOT;</p>""",
to: "${emailRecipient}",
from: "buildNotifications@emailaddress.com"
)
}
// Email Ext plugin:
success {
emailext (
subject: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """<p>SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':</p>
<p>Check console output at &QUOT;<a href='${env.BUILD_URL}'>${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>&QUOT;</p>""",
to: "${emailRecipient}",
from: "buildNotifications@emailaddress.com"
)
}

failure {

emailext (
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """<p>FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':</p>
<p>Check console output at &QUOT;<a href='${env.BUILD_URL}'>${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>&QUOT;</p>""",
to: "${emailRecipient}",
from: "buildNotifications@emailaddress.com"
)
}
failure {
emailext (
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """<p>FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':</p>
<p>Check console output at &QUOT;<a href='${env.BUILD_URL}'>${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>&QUOT;</p>""",
to: "${emailRecipient}",
from: "buildNotifications@emailaddress.com"
)
}
}
}