-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
malacourse
committed
Aug 31, 2017
1 parent
af5dfd5
commit 011be57
Showing
10 changed files
with
644 additions
and
11 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
apiVersion: v1 | ||
kind: Template | ||
labels: | ||
template: generic-java-jenkins-pipeline | ||
metadata: | ||
annotations: | ||
description: Application template for JWS applications built using a Jenkins Pipeline | ||
iconClass: icon-tomcat | ||
tags: tomcat,tomcat8,java,jboss,xpaas,jenkins-ci | ||
version: 1.2.0 | ||
name: generic-java-jenkins-pipeline | ||
objects: | ||
- kind: "BuildConfig" | ||
apiVersion: "v1" | ||
metadata: | ||
labels: | ||
application: ${APPLICATION_NAME} | ||
name: "${APPLICATION_NAME}-pipeline" | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
source: | ||
type: Git | ||
git: | ||
uri: ${SOURCE_REPOSITORY_URL} | ||
ref: ${SOURCE_REPOSITORY_REF} | ||
contextDir: ${CONTEXT_DIR} | ||
triggers: | ||
- type: "GitHub" | ||
github: | ||
secret: ${GITHUB_WEBHOOK_SECRET} | ||
- type: "ConfigChange" | ||
strategy: | ||
type: "JenkinsPipeline" | ||
jenkinsPipelineStrategy: | ||
jenkinsfilePath: ${PIPELINE_SCRIPT} | ||
env: | ||
- name: "BUILD_CONTEXT_DIR" | ||
value: "demo" | ||
- apiVersion: v1 | ||
kind: BuildConfig | ||
metadata: | ||
labels: | ||
application: ${APPLICATION_NAME} | ||
name: ${APPLICATION_NAME} | ||
namespace: "${NAMESPACE}" | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: ${APPLICATION_NAME}:latest | ||
source: | ||
binary: {} | ||
type: Binary | ||
strategy: | ||
sourceStrategy: | ||
from: | ||
kind: ImageStreamTag | ||
name: ${IMAGE_STREAM_TAG_NAME} | ||
namespace: ${IMAGE_STREAM_NAMESPACE} | ||
type: Source | ||
parameters: | ||
- description: The name for the application. | ||
name: APPLICATION_NAME | ||
required: true | ||
value: simple-spring-boot | ||
- description: The namespace to deploy into | ||
name: NAMESPACE | ||
required: true | ||
- description: Git source URI for application | ||
name: SOURCE_REPOSITORY_URL | ||
required: true | ||
value: https://github.com/malacourse/simple-spring-boot-web.git | ||
- description: Git branch/tag reference | ||
name: SOURCE_REPOSITORY_REF | ||
value: "master" | ||
- description: Path within Git project to build; empty for root project directory. | ||
name: CONTEXT_DIR | ||
value: | ||
- description: Path within Git project pointing to the pipeline run script | ||
name: PIPELINE_SCRIPT | ||
value: pipeline.groovy | ||
- description: GitHub trigger secret | ||
from: '[a-zA-Z0-9]{8}' | ||
generate: expression | ||
name: GITHUB_WEBHOOK_SECRET | ||
required: true | ||
- description: Generic build trigger secret | ||
from: '[a-zA-Z0-9]{8}' | ||
generate: expression | ||
name: GENERIC_WEBHOOK_SECRET | ||
required: true | ||
- description: Namespace in which the ImageStreams for Red Hat Middleware images are | ||
installed. These ImageStreams are normally installed in the openshift namespace. | ||
You should only need to modify this if you've installed the ImageStreams in a | ||
different namespace/project. | ||
name: IMAGE_STREAM_NAMESPACE | ||
required: true | ||
value: openshift | ||
- description: Image stream tag for the image you'd like to use to build the application | ||
name: IMAGE_STREAM_TAG_NAME | ||
required: true | ||
value: redhat-openjdk18-openshift:1.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
APPLICATION_NAME=spring-boot-web | ||
NAMESPACE=simple-spring-boot-dev | ||
IMAGE_STREAM_TAG_NAME=redhat-openjdk18-openshift:1.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
APPLICATION_NAME=spring-boot-web | ||
NAMESPACE=simple-spring-boot-dev | ||
SA_NAMESPACE=simple-spring-boot-dev |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
APPLICATION_NAME=spring-boot-web | ||
NAMESPACE=simple-spring-boot-prod | ||
SA_NAME=jenkins | ||
SA_NAMESPACE=simple-spring-boot-dev |
Oops, something went wrong.