We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3856f62 + 897962f commit bcc5e29Copy full SHA for bcc5e29
2 files changed
pipeline-template-examples/templates/simple-java-maven-app/Jenkinsfile
@@ -1,7 +1,12 @@
1
pipeline {
2
agent any
3
-
+
4
stages {
5
+ stage('Checkout') {
6
+ steps {
7
+ git credentialsId: "${github_creds}" , url: "${github_repo}"
8
+ }
9
10
stage('Build') {
11
steps {
12
sh 'mvn -B -DskipTests clean package'
@@ -34,4 +39,4 @@ pipeline {
34
39
)
35
40
}
36
41
37
-}
42
+}
pipeline-template-examples/templates/simple-java-maven-app/template.yaml
@@ -7,3 +7,10 @@ parameters:
- name: emailRecipient
type: string
displayName: Email address to be used for sending build notifications
+ - name: github_repo
+ type: string
+ displayName: GitHub HTTPS repo endpoint
13
+ - name: github_creds
14
+ displayName: GitHub Credentials ID
15
+ type: credentials
16
+ defaultValue: github-creds-example
0 commit comments