OpenShift Build Configuration Definition: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 47: Line 47:
   
   
     '''[[OpenShift_Build_Configuration_Definition#sourceStrategy|sourceStrategy]]''':
     '''[[OpenShift_Build_Configuration_Definition#sourceStrategy|sourceStrategy]]''':
       env:
       '''[[OpenShift_Build_Configuration_Definition#env|env]]''':
       - name: MAVEN_MIRROR_URL
       - name: MAVEN_MIRROR_URL
       - name: ARTIFACT_DIR
       - name: ARTIFACT_DIR

Revision as of 23:56, 6 December 2017

External

Internal

Example

apiVersion: v1
kind: BuildConfig
metadata:
  labels:
    app: eap70-basic-s2i
    application: session-servlet
    template: eap70-basic-s2i
    xpaas: 1.4.0
  name: session-servlet

spec: 

  failedBuildsHistoryLimit: 5

  nodeSelector: null

  output:
    to:
      kind: ImageStreamTag
      name: session-servlet:latest

  postCommit: {}

  resources: {}

  runPolicy: Serial

  source:
    contextDir: /
    git:
      ref: master
      uri: https://github.com/NovaOrdis/novaordis-session-servlet.git
    type: Git

  strategy:

    sourceStrategy:
      env:
      - name: MAVEN_MIRROR_URL
      - name: ARTIFACT_DIR
      forcePull: true
      from:
        kind: ImageStreamTag
        name: jboss-eap70-openshift:1.5
        namespace: openshift
    type: Source

  successfulBuildsHistoryLimit: 5
  triggers:
  - github:
      secret: v2h6dtKw7Gw3
    type: GitHub
  - generic:
      secret: Euf3bjjw
    type: Generic
  - imageChange:
    type: ImageChange
  - type: ConfigChange
status:

Elements

spec

strategy

sourceStrategy

env

Represents the environment that will be injected into the build pod.

Configuration

Turn Off SSL Certificate Verification for Git