]
Andre Dietisheim updated JBIDE-24146:
-------------------------------------
Labels: application_wizard openshift openshift_v3 (was: openshift openshift_v3
wizard)
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
Labels: application_wizard, openshift, openshift_v3
Fix For: 4.5.0.AM2
Attachments: jenkins-pipeline-template.png, jenkins-variants.png,
pipeline-build.png, webui-edit-pipeline-file.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}