-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: New method add_maven_config for JCasC config
This method allows for adding settings files for new projects via JCasC, rather than the old method of using a Groovy script to manually add the file to Jenkins. This also removes the __del__ function. The function was not entirely necessary, and was causing issues with unit testing. All work is done in /tmp, so these files will be automatically cleaned by the system. Issue: RELENG-3893 Change-Id: I03511b9c3e1c9f9c9f79054bd6f8991cd274e8f5 Signed-off-by: Eric Ball <[email protected]>
- Loading branch information
Showing
7 changed files
with
235 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,3 +81,23 @@ addinfojob | |
username = lfid2 | ||
password = password2 | ||
signed_off_by = Your Name <[email protected]> | ||
addmavenconfig | ||
-------------- | ||
.. program-output:: lftools gerrit addmavenconfig --help | ||
|
||
|
||
An example of the lftools.ini entry for a Gerrit server making use of a full | ||
configuration: | ||
|
||
.. code-block:: none | ||
[gerrit.example.org] | ||
username = lfid | ||
password = password | ||
signed_off_by = Your Name <[email protected]> | ||
endpoint = https://gerrit.example.org/ | ||
default_servers = releases,snapshots,staging,site | ||
nexus3 = nexus3.example.org | ||
nexus3_ports = 10001,10002,10003,10004 | ||
additional_credentials = {"docker.io": "dockerhub-cred", "nexus-iq": "nexus-iq-cred"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
name: "{{ project_dashed }}" | ||
comment: "{{ project_dashed }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
serverCredentialMappings: | ||
{%- for server in default_servers %} | ||
- serverId: "{{ server }}" | ||
credentialsId: "{{ project_dashed }}" | ||
{%- endfor -%} | ||
{%- if nexus3_url and nexus3_ports -%} | ||
{% for port in nexus3_ports %} | ||
- serverId: "{{ nexus3_url }}:{{port}}" | ||
credentialsId: "{{ project_dashed }}" | ||
{%- endfor -%} | ||
{%- endif -%} | ||
{%- if additional_credentials -%} | ||
{%- for server, cred in additional_credentials.items() %} | ||
- serverId: "{{ server }}" | ||
credentialsId: "{{ cred }}" | ||
{%- endfor -%} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
features: | ||
- | | ||
New method git.add_maven_config allows for adding settings files for new | ||
projects via JCasC, rather than the old method of using a Groovy script to | ||
manually add the file to Jenkins. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters