Upload ODL packaging debs to nexus repository 56/59556/13
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 27 Jun 2017 11:35:52 +0000 (21:35 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 11 Jul 2017 13:07:07 +0000 (23:07 +1000)
- Packaging jobs are modified to upload debs & dsc files onto nexus
  repositroy.
- A separate Nexus repository is created for each '{stream}'. The
  repos are enabled to generate yum metadata along with scheduled
  tasks for devel repositories to purge packages from daily builds after
  30 days.
- Nexus repositories format:
  Release: opendaylight-{stream}-epel-7-x86_64
  Testing/Staging: opendaylight-{stream}-epel-7-x86_64-devel
  Release: opendaylight-{stream}-ubuntu-1604-x86_64
  Testing/Staging: opendaylight-{stream}-ubuntu-1604-x86_64-devel
- Modify autorelease jobs to trigger stream specific downstream jobs.

Change-Id: I3164223ed47ddbc76d27da0446437c580ce6c015
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/autorelease/autorelease-templates.yaml
jjb/packaging/include-raw-build-deb.sh
jjb/packaging/packaging.yaml

index 607c5c1aaa3c1e2c26e32848f5eccec7dbc152c6..86225031b2d7dd7265ad9b48bac1d0131060dfee 100644 (file)
             predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
             property-file: variables.jenkins-trigger
             fail-on-missing: true
+          - project: 'packaging-build-deb-{stream}'
+            condition: UNSTABLE_OR_BETTER
+            predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
+            property-file: variables.jenkins-trigger
+            fail-on-missing: true
       - lf-infra-publish
 
 - job-template:
index 856c8b3229764977dac2d87fc27628214a6f3a14..0602669128240ffc810b865283aa3be6de5b2643 100644 (file)
@@ -19,3 +19,10 @@ set -ex -o pipefail
                                   --changelog_time "$CHANGELOG_TIME" \
                                   --changelog_name "$CHANGELOG_NAME" \
                                   --changelog_email "$CHANGELOG_EMAIL"
+
+# Copy the debs to be upload
+UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
+mkdir -p "$UPLOAD_FILES_PATH"
+# Note: no source packages are available, since the debs are not built
+# from the actual source
+mv "$WORKSPACE/packaging/deb/opendaylight/"*.deb "$_"
index e3de926f8e68f0f9a6350a73390dd475077a93c9..ef6126e32aeb57998f59bd09ffd8450d631fba87 100644 (file)
 
     project-type: freestyle
 
+    mvn-opts: ''
+    mvn-params: ''
+    mvn-version: mvn33
+
     properties:
       - opendaylight-infra-properties:
           build-days-to-keep: 7
           branch: '{branch}'
           refspec: 'refs/heads/{branch}'
           artifacts: '{archive-artifacts}'
+      - lf-infra-maven-parameters:
+          mvn-opts: '{mvn-opts}'
+          mvn-params: '{mvn-params}'
+          mvn-version: '{mvn-version}'
+          staging-profile-id: ''
       - string:
           name: VERSION_MAJOR
           default: '5'
           name: JAVA_VERSION
           default: '8'
           description: Java dependency for the ODL release
+      - string:
+          name: JAVA_HOME
+          default: '/usr/lib/jvm/java-8-openjdk-amd64/'
+          description: Set JAVA_HOME to openjdk8
       - string:
           name: CHANGELOG_DATE
           default: 'Mon, 1 Aug 2016'
 
     builders:
       - shell: !include-raw: include-raw-build-deb.sh
+      - lf-infra-deploy-maven-file:
+          global-settings-file: 'global-settings'
+          settings-file: 'packaging-settings'
+          mvn-version: '{mvn-version}'
+          repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
+          group-id: 'org.opendaylight.integration-packaging'
+          files-dir: '$WORKSPACE/upload_files'
 
     publishers:
       - archive-artifacts:
-          artifacts: 'packaging/deb/opendaylight/*.deb'
+          artifacts: 'packaging/deb/opendaylight/*.deb packaging/deb/opendaylight/*.dsc'
       - lf-infra-publish