DO NOT hardcode mvn staging server id 05/6605/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 28 Sep 2017 17:34:36 +0000 (13:34 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 28 Sep 2017 17:35:27 +0000 (13:35 -0400)
This needs to be configured in defaults.yaml to get the right one.

Change-Id: I8d54118999eb912c3074c4bb2f9b5237bea93ebe
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.jjb-test/defaults.yaml
.jjb-test/expected-xml/gerrit-maven-maven-release-master
.jjb-test/expected-xml/github-maven-maven-release-master
README.md
jjb/lf-maven-jobs.yaml

index 9991f8b..4a7a3bb 100644 (file)
@@ -21,6 +21,7 @@
 
     lftools-version: '<1.0.0'
     mvn-site-id: project-site
+    mvn-staging-id: project-staging
 
     # Common test config
     project: releng/ciman
index 191c781..dd64963 100644 (file)
@@ -224,7 +224,7 @@ For example '&lt;1.0.0' or '&gt;=1.0.0,&lt;2.0.0'.
     </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
     <EnvInjectBuilder>
       <info>
-        <propertiesContent>SERVER_ID=opendaylight-staging</propertiesContent>
+        <propertiesContent>SERVER_ID=project-staging</propertiesContent>
       </info>
     </EnvInjectBuilder>
     <hudson.tasks.Shell>
index d41076e..ca84180 100644 (file)
@@ -192,7 +192,7 @@ For example '&lt;1.0.0' or '&gt;=1.0.0,&lt;2.0.0'.
     </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
     <EnvInjectBuilder>
       <info>
-        <propertiesContent>SERVER_ID=opendaylight-staging</propertiesContent>
+        <propertiesContent>SERVER_ID=project-staging</propertiesContent>
       </info>
     </EnvInjectBuilder>
     <hudson.tasks.Shell>
index 180c7e9..8745cf8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -113,6 +113,9 @@ For example `<1.0.0` or `>=1.0.0,<2.0.0`.
 **mvn-site-id**: Maven Server ID from settings.xml containing the credentials
 to push to a Maven site repository.
 
+**mvn-staging-id**: Maven Server ID from settings.xml containing the credentials
+to push to a Maven staging repository.
+
 defaults.yaml:
 
 ```
index 247aaeb..452b839 100644 (file)
     # directory can then be reused later to deploy to Nexus.
     #
     # Required parameters:
-    #     build-node:    The node to run build on.
-    #     jenkins-ssh-credential: Credential to use for SSH. (Generally should
-    #                             be configured in defaults.yaml)
-    #     mvn-settings: The name of settings file containing credentials for
-    #                   the project.
-    #     staging-profile-id: Profile ID of the project's Nexus staging profile.
+    #     :build-node: The node to run build on.
+    #     :jenkins-ssh-credential: Credential to use for SSH. (Generally should
+    #                              be configured in defaults.yaml)
+    #     :mvn-settings: The name of settings file containing credentials for
+    #                    the project.
+    #     :mvn-staging-id: Maven Server ID from settings.xml to pull credentials from.
+    #         (Note: This setting should be configured in defaults.yaml.)
+    #     :staging-profile-id: Profile ID of the project's Nexus staging profile.
     #
     # Optional parameters:
     #     :gerrit_verify_triggers: Override Gerrit Triggers.
           global-settings-file: '{mvn-global-settings}'
           settings-file: '{mvn-settings}'
       - lf-infra-create-netrc:
-          server-id: opendaylight-staging
+          server-id: '{mvn-staging-id}'
       - shell: !include-raw-escape:
           - ../shell/lftools-install.sh
           - ../shell/common-variables.sh