|
Re: Lock git repo url via configuration [message #1824104 is a reply to message #1824085] |
Wed, 08 April 2020 04:28 |
Ed Merks Messages: 33254 Registered: July 2009 |
Senior Member |
|
|
We probably should have made the anonymous choice the first one.
But yes, given your Git Clone task has ID a.b.c, there will be a variable a.b.c.removeURI induced that you can define in your Configuration to be some specific value. The Outline view is useful for seeing which variables will be prompted (Unresolved Variables group) and here you'll see exactly which variables you could define in your Configuration such that it's not prompted. You could also define that variable with choices where the first choice will be the default. Or you could redefine the following variable from the Github.com project catalog to order the choices differently in general:<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
xmi:version="2.0"
xmlns:xmi="[url]http://www.omg.org/XMI[/url]"
xmlns:setup="[url]http://www.eclipse.org/oomph/setup/1.0[/url]"
name="github.remoteURIs"
label="Github repository">
<choice value="[email]git@github.com[/email]:@{remoteURI}.git"
label="Git (read-write)"/>
<choice value="[url]https://${github.user.id|username}@github.com/@{remoteURI}.git[/url]"
label="HTTPS (read-write)"/>
<choice value="[url]https://github.com/@{remoteURI}.git[/url]"
label="HTTPS (read-only, anonymous)"/>
<description>Choose from the available Github URIs</description>
</setup:VariableTask>
Ed Merks
Professional Support: https://www.macromodeling.com/
[Updated on: Wed, 08 April 2020 04:28] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02722 seconds