[ta] Moved RPMs to Nexus3 80/780/2
authorraghuramamendru <raghurama.mendru@nokia.com>
Fri, 17 May 2019 06:14:33 +0000 (01:14 -0500)
committerRaghurama Mendru <raghurama.mendru@nokia.com>
Wed, 22 May 2019 19:57:40 +0000 (19:57 +0000)
Includes:
- TA RPMs moved from Nexus2 to Nexus3
- "ta-settings" used instead of "images-snapshots-settings"

Change-Id: I07cd86f09ec8fc0aa43c0f0b8eb328dfa8102edf
Signed-off-by: raghuramamendru <raghurama.mendru@nokia.com>
jjb/akraino-templates/akraino-ta-common-macros.yaml
jjb/shell/ta-rpm-deploy.sh

index 874d166..7cfbfe1 100644 (file)
       - lf-provide-maven-settings-cleanup
       - config-file-provider:
           files:
-            - file-id: 'images-snapshots-settings'
+            - file-id: 'ta-settings'
               variable: 'SETTINGS_FILE'
+      - inject:
+          properties-content: 'ALT_NEXUS_URL=https://nexus3.akraino.org'
       - lf-infra-create-netrc:
-          server-id: images-snapshots
+          server-id: rpm.snapshots
       - shell: !include-raw:
           # Ensure python-tools are installed in case job template does not
           # call the lf-infra-pre-build macro.
       - lf-provide-maven-settings-cleanup
       - config-file-provider:
           files:
-            - file-id: 'images-snapshots-settings'
+            - file-id: 'ta-settings'
               variable: 'SETTINGS_FILE'
       - lf-infra-create-netrc:
           server-id: images-snapshots
index e89411b..36c7c5b 100644 (file)
@@ -16,13 +16,13 @@ set -eu -o pipefail
 
 set -x  # Trace commands for this script to make debugging easier.
 
-NEXUS_REPO=images-snapshots
+NEXUS_REPO=rpm.snapshots
 release_path=TA/release-1
 
 repo_dir="$WORKSPACE/work/nexus/$NEXUS_REPO"
 x86_dir="$repo_dir/$release_path/rpms/x86_64"
 sources_dir="$repo_dir/$release_path/rpms/Sources"
-nexus_repo_url="$NEXUS_URL/content/repositories/$NEXUS_REPO"
+nexus_repo_url="$ALT_NEXUS_URL/repository/$NEXUS_REPO"
 
 mkdir -p "$x86_dir"
 mkdir -p "$sources_dir"