Skip to content

Commit e127795

Browse files
authored
Merge pull request #1 from jennbriden/jbriden-initial-template-examples
The initial commit for pipeline template examples
2 parents 7fd51de + a119938 commit e127795

11 files changed

Lines changed: 117 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CloudBees Core Pipeline Templates Plugin
2+
This repository includes a sample template catalog and demos of how to use parameters in pipeline templates.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 1
2+
type: pipeline-template-catalog
3+
4+
name: customerPortalFrontendTeamCatalog
5+
displayName: Shared Template Catalog for Teams Working on the Customer Portal

pipeline-template-examples/demos/credentials/README.md

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CloudBees Pipeline Templates Example
2+
## Multibranch Pipeline Authentication for Bitbucket.org
3+
4+
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.
5+
6+
````
7+
type: MULTIBRANCH
8+
...
9+
10+
multibranch:
11+
branchSource:
12+
bitbucket:
13+
remote: https://bitbucket.org
14+
repoOwner: myCompany
15+
repository: ${repoName}
16+
credentialsId: my-team-bitbucket-credentials
17+
````
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CloudBees Pipeline Templates Example
2+
## Multibranch Pipeline Authentication for a Bitbucket Server
3+
4+
This example shows how to add authentication to your organization's Bitbucket server. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core.
5+
6+
````
7+
type: MULTIBRANCH
8+
...
9+
10+
multibranch:
11+
branchSource:
12+
bitbucket:
13+
remote: https://bitbucket.beescloud.com
14+
repoOwner: myCompany
15+
repository: ${repoName}
16+
credentialsId: my-team-bitbucket-credentials
17+
````
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# CloudBees Pipeline Templates Example
2+
## Multibranch Pipeline Authentication for a Git Server
3+
4+
This example shows how to add authentication to your Git server repository. The developer will supply the value for the ${repoUrl} parameter when they create their pipeline job in CloudBees Core.
5+
6+
````
7+
type: MULTIBRANCH
8+
...
9+
10+
multibranch:
11+
branchSource:
12+
git:
13+
remote: ${repoUrl}
14+
credentialsId: my-team-git-credentials
15+
````
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# CloudBees Pipeline Templates Example
2+
## Multibranch Pipeline Authentication for Github.com
3+
4+
This example shows how to add authentication to your Github.com repository. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core.
5+
6+
````
7+
type: MULTIBRANCH
8+
...
9+
10+
multibranch:
11+
branchSource:
12+
github:
13+
repoOwner: myCompany
14+
repository: ${repoName}
15+
scanCredentialsId: my-team-github-credentials
16+
````
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CloudBees Pipeline Templates Example
2+
## Multibranch Pipeline Authentication for Github Enterprise
3+
4+
This example shows how to add authentication to your Github Enterprise repository. The developer will supply the value for the ${repoName} parameter when they create their pipeline job in CloudBees Core.
5+
6+
````
7+
type: MULTIBRANCH
8+
...
9+
10+
multibranch:
11+
branchSource:
12+
github:
13+
apiUrl: https://github.beescloud.com/api/v3
14+
repoOwner: myCompany
15+
repository: ${repoName}
16+
scanCredentialsId: my-team-github-credentials
17+
````

pipeline-template-examples/demos/notifications/README.md

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pipeline {
2+
agent any
3+
stages {
4+
stage('Example') {
5+
input {
6+
message "Should we continue?"
7+
ok "Yes, we should."
8+
submitter "alice,bob"
9+
parameters {
10+
string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
11+
}
12+
}
13+
steps {
14+
echo "Hello, ${PERSON}, nice to meet you."
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)