Open hrishin opened 5 years ago
cd {
// processing openshift template present in .openshiftio/application.yaml
def resources = processTemplate(params: [
RELEASE_VERSION: "1.0.${env.BUILD_NUMBER}"
])
// performs an s2i build
build resources: resources, env: environment(type:'build')
// deploy to stage environment
deploy resources: resources, env: environment(type:'stage')
// wait for user to approve the promotion to "run" environment
deploy resources: resources, env: environment(type:'run'), approval: 'manual'
}
This is one the possible way, pipeline can become independent. Where envionment
API resolving complete name space.
In order to make this library work across any OpenShift cluster need to address the following issues:
build
anddepoy
takesenv
as target envionment(namspaces) to execute the workload. ATM it takes partial namespace names likestage
,run
and internally it resolves to osio based namespaces. To fix this issue it should take complete namespace name or envionment details like cluster + namespace.