opendevstack / ods-jenkins-shared-library

Shared Jenkins library which all ODS projects & components use - provisioning, SonarQube code scanning, Nexus publishing, OpenShift template based deployments and repository orchestration
Apache License 2.0
73 stars 57 forks source link

Dump generated BC labels into file (release.json) during jenkins build #89

Closed clemensutschig closed 5 years ago

clemensutschig commented 5 years ago

https://github.com/opendevstack/ods-jenkins-shared-library/blob/master/vars/stageStartOpenshiftBuild.groovy#L20-L28

generates the BC patch json - with the ods specific labels. at this stage we could also dump this into a file that is baked into the image (release.json) ..

Great news is that additional entries can be already added :) - but as BC build args only
https://github.com/opendevstack/ods-jenkins-shared-library/blob/master/vars/stageStartOpenshiftBuild.txt#L7

@michaelsauter - we should document this a little better :)

https://github.com/opendevstack/ods-jenkins-shared-library/blob/master/vars/stageStartOpenshiftBuild.groovy#L1 - should be extended for imagelabels = [:]

clemensutschig commented 5 years ago

image

clemensutschig commented 5 years ago

file generated is called release.json and can be used in the dockerfile thru ADD / COPY release.json ....