X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=docs%2Fjjb%2Flf-release-jobs.rst;h=d0f5340feb34f7d005ba23b161f7a377dadf79b3;hb=fdcb4193a50803ac02b162e4b875f126b1fe8a37;hp=9d5b1886067393372e95fb0c81b6c8246e377199;hpb=2a7ddce438852341da1d629be92d46217515796c;p=releng%2Fglobal-jjb.git diff --git a/docs/jjb/lf-release-jobs.rst b/docs/jjb/lf-release-jobs.rst index 9d5b1886..d0f5340f 100644 --- a/docs/jjb/lf-release-jobs.rst +++ b/docs/jjb/lf-release-jobs.rst @@ -108,11 +108,16 @@ The JSON schema for a container release job appears below. type: "string" container_release_tag: type: "string" + container_pull_registry" + type: "string" + container_push_registry" + type: "string" ref: type: "string" -An example of a container release file appears below. The job applies the +An example of a container release file appears below. The job tags the +git repository at the specified commit reference. The job applies the container_release_tag string to all released containers. The job uses the per-container version strings to pull images from the container registry. @@ -122,7 +127,10 @@ per-container version strings to pull images from the container registry. --- distribution_type: 'container' container_release_tag: '1.0.0' + container_pull_registry: 'nexus.onap.org:10003" + container_push_registry: 'nexus.onap.org:10002" project: 'test' + ref: d1b9cd2dd345fbeec0d3e2162e008358b8b663b2 containers: - name: test-backend version: 1.0.0-20190806T184921Z @@ -130,20 +138,20 @@ per-container version strings to pull images from the container registry. version: 1.0.0-20190806T184921Z -.. note:: - - Job should appear under gerrit-maven-stage - -Example of a terse Jenkins job to call the global-jjb macro: +Example of a Jenkins job configuration that uses the global-jjb +templates for Gerrit: .. code-block:: none - - gerrit-maven-stage: - sign-artifacts: true - build-node: centos7-docker-8c-8g - maven-versions-plugin: true - - '{project-name}-gerrit-release-jobs': - build-node: centos7-docker-8c-8g + - project: + name: my-project-release + project: my-project + project-name: my-project + build-node: centos7-docker-4c-4g + mvn-settings: my-project-settings + jobs: + - '{project-name}-gerrit-release-jobs' + .. note:: @@ -218,6 +226,12 @@ Jenkins configure -> Global properties -> Environment variables ``RELEASE_USERNAME = YOUR_RELEASE_USERNAME`` ``RELEASE_EMAIL = YOUR_RELEASE_EMAIL`` + +.. note:: + + Add these variables to your global-vars-$SILO.sh file or they will + be overwritten. + Jenkins configure -> Managed Files -> Add a New Config -> Custom File id: signing-pubkey