OpenShift Build Configuration Definition: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
=servlet-example Build Configuration=
=servlet-example Build Configuration=


<syntaxhighlight lang='yaml'>
apiVersion: v1
apiVersion: v1
kind: BuildConfig
kind: BuildConfig
metadata:
metadata:
  labels:
  labels:
    app: eap70-basic-s2i
    app: eap70-basic-s2i
    application: session-servlet
    application: session-servlet
    template: eap70-basic-s2i
    template: eap70-basic-s2i
    xpaas: 1.4.0
    xpaas: 1.4.0
  name: session-servlet
  name: session-servlet
spec:
spec:
  failedBuildsHistoryLimit: 5
  failedBuildsHistoryLimit: 5
  nodeSelector: null
  nodeSelector: null
  output:
  output:
    to:
    to:
      kind: ImageStreamTag
      kind: ImageStreamTag
      name: session-servlet:latest
      name: session-servlet:latest
  postCommit: {}
  postCommit: {}
  resources: {}
  resources: {}
  runPolicy: Serial
  runPolicy: Serial
  source:
  source:
    contextDir: /
    contextDir: /
    git:
    git:
      ref: master
      ref: master
      uri: https://github.com/NovaOrdis/novaordis-session-servlet.git
      uri: https://github.com/NovaOrdis/novaordis-session-servlet.git
    type: Git
    type: Git
  strategy:
  strategy:
    sourceStrategy:
    sourceStrategy:
      env:
      env:
      - name: MAVEN_MIRROR_URL
      - name: MAVEN_MIRROR_URL
      - name: ARTIFACT_DIR
      - name: ARTIFACT_DIR
      forcePull: true
      forcePull: true
      from:
      from:
        kind: ImageStreamTag
        kind: ImageStreamTag
        name: jboss-eap70-openshift:1.5
        name: jboss-eap70-openshift:1.5
        namespace: openshift
        namespace: openshift
    type: Source
    type: Source
  successfulBuildsHistoryLimit: 5
  successfulBuildsHistoryLimit: 5
  triggers:
  triggers:
  - github:
  - github:
      secret: v2h6dtKw7Gw3
      secret: v2h6dtKw7Gw3
    type: GitHub
    type: GitHub
  - generic:
  - generic:
      secret: Euf3bjjw
      secret: Euf3bjjw
    type: Generic
    type: Generic
  - imageChange:
  - imageChange:
    type: ImageChange
    type: ImageChange
  - type: ConfigChange
  - type: ConfigChange
status:
status:
</syntaxhighlight>


=Configuration=
=Configuration=


==Turn Off SSL Certificate Verification for Git==
==Turn Off SSL Certificate Verification for Git==

Revision as of 23:49, 6 December 2017

External

Internal

servlet-example Build Configuration

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:

Configuration

Turn Off SSL Certificate Verification for Git