[jbosstools-issues] [JBoss JIRA] (JBIDE-24146) Support pipeline deployment style

Andre Dietisheim (JIRA) issues at jboss.org
Wed Apr 5 04:52:01 EDT 2017


     [ https://issues.jboss.org/browse/JBIDE-24146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim updated JBIDE-24146:
-------------------------------------
    Description: 
In the web-console jenkins pipelines are supported in the following way:

* when opening up an empty project you get a special template:
!jenkins-pipeline-template.png!

* which offers 2 different jenkins variants (and a full example that contains app source and build pipeline):
!jenkins-variants.png! 

* once executed you get a special build type *pipeline*
 !pipeline-build.png! 

* the full example template is using the following build config with the strategy type *JenkinsPipeline*:
{code}
apiVersion: v1
kind: BuildConfig
metadata:
  name: sample-pipeline
  namespace: gulu
  selfLink: /oapi/v1/namespaces/gulu/buildconfigs/sample-pipeline
  uid: 12dec3c8-1948-11e7-a217-0251082287a6
  resourceVersion: '3757'
  creationTimestamp: '2017-04-04T15:05:00Z'
  labels:
    app: jenkins-pipeline-example
    name: sample-pipeline
    template: application-template-sample-pipeline
  annotations:
    pipeline.alpha.openshift.io/uses: >-
      [{"name": "nodejs-mongodb-example", "namespace": "", "kind":
      "DeploymentConfig"}]
spec:
  triggers:
    - type: GitHub
      github:
        secret: secret101
    - type: Generic
      generic:
        secret: secret101
  runPolicy: Serial
  source:
    type: None
  strategy:
    type: JenkinsPipeline
    jenkinsPipelineStrategy:
      jenkinsfile: >-
        node('nodejs') {

        stage 'build'

        openshiftBuild(buildConfig: 'nodejs-mongodb-example', showBuildLogs:
        'true')

        stage 'deploy'

        openshiftDeploy(deploymentConfig: 'nodejs-mongodb-example')

        }
  output: {}
  resources: {}
  postCommit: {}
  nodeSelector: null
status:
  lastVersion: 1
{code}

  was:
In the web-console jenkins pipelines are supported in the following way:

* when opening up an empty project you get a special template:
!jenkins-pipeline-template.png!

* which offers 2 different jenkins variants (and a full example that contains app source and build pipeline):
!jenkins-variants.png! 

* once executed you get a special build type *pipeline*
 !pipeline-build.png! 

* the full example template is using the following build config:
{code}
apiVersion: v1
kind: BuildConfig
metadata:
  name: sample-pipeline
  namespace: gulu
  selfLink: /oapi/v1/namespaces/gulu/buildconfigs/sample-pipeline
  uid: 12dec3c8-1948-11e7-a217-0251082287a6
  resourceVersion: '3757'
  creationTimestamp: '2017-04-04T15:05:00Z'
  labels:
    app: jenkins-pipeline-example
    name: sample-pipeline
    template: application-template-sample-pipeline
  annotations:
    pipeline.alpha.openshift.io/uses: >-
      [{"name": "nodejs-mongodb-example", "namespace": "", "kind":
      "DeploymentConfig"}]
spec:
  triggers:
    - type: GitHub
      github:
        secret: secret101
    - type: Generic
      generic:
        secret: secret101
  runPolicy: Serial
  source:
    type: None
  strategy:
    type: JenkinsPipeline
    jenkinsPipelineStrategy:
      jenkinsfile: >-
        node('nodejs') {

        stage 'build'

        openshiftBuild(buildConfig: 'nodejs-mongodb-example', showBuildLogs:
        'true')

        stage 'deploy'

        openshiftDeploy(deploymentConfig: 'nodejs-mongodb-example')

        }
  output: {}
  resources: {}
  postCommit: {}
  nodeSelector: null
status:
  lastVersion: 1
{code}



> Support pipeline deployment style
> ---------------------------------
>
>                 Key: JBIDE-24146
>                 URL: https://issues.jboss.org/browse/JBIDE-24146
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: openshift
>    Affects Versions: 4.4.4.AM2
>            Reporter: Jeff MAURY
>            Assignee: Andre Dietisheim
>              Labels: openshift, openshift_v3, wizard
>             Fix For: 4.4.4.AM3
>
>         Attachments: jenkins-pipeline-template.png, jenkins-variants.png, pipeline-build.png
>
>
> In the web-console jenkins pipelines are supported in the following way:
> * when opening up an empty project you get a special template:
> !jenkins-pipeline-template.png!
> * which offers 2 different jenkins variants (and a full example that contains app source and build pipeline):
> !jenkins-variants.png! 
> * once executed you get a special build type *pipeline*
>  !pipeline-build.png! 
> * the full example template is using the following build config with the strategy type *JenkinsPipeline*:
> {code}
> apiVersion: v1
> kind: BuildConfig
> metadata:
>   name: sample-pipeline
>   namespace: gulu
>   selfLink: /oapi/v1/namespaces/gulu/buildconfigs/sample-pipeline
>   uid: 12dec3c8-1948-11e7-a217-0251082287a6
>   resourceVersion: '3757'
>   creationTimestamp: '2017-04-04T15:05:00Z'
>   labels:
>     app: jenkins-pipeline-example
>     name: sample-pipeline
>     template: application-template-sample-pipeline
>   annotations:
>     pipeline.alpha.openshift.io/uses: >-
>       [{"name": "nodejs-mongodb-example", "namespace": "", "kind":
>       "DeploymentConfig"}]
> spec:
>   triggers:
>     - type: GitHub
>       github:
>         secret: secret101
>     - type: Generic
>       generic:
>         secret: secret101
>   runPolicy: Serial
>   source:
>     type: None
>   strategy:
>     type: JenkinsPipeline
>     jenkinsPipelineStrategy:
>       jenkinsfile: >-
>         node('nodejs') {
>         stage 'build'
>         openshiftBuild(buildConfig: 'nodejs-mongodb-example', showBuildLogs:
>         'true')
>         stage 'deploy'
>         openshiftDeploy(deploymentConfig: 'nodejs-mongodb-example')
>         }
>   output: {}
>   resources: {}
>   postCommit: {}
>   nodeSelector: null
> status:
>   lastVersion: 1
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list