From da84722ed6f7d35706ba4bb754ce1bbfbf9c92ea Mon Sep 17 00:00:00 2001
From: buildmaster
Either via environment variables, system prope inside the plugin or contracts repository configuration you can tweak the downloader’s behaviour. Below you can find the list of properties
Table 10.1. SCM Stub Downloader properties
Type of a property | Name of the property | Description |
* | master | Which branch to checkout |
* | Git clone username | |
* | Git clone password | |
* | 10 | Number of attempts to push the commits to |
* | 1000 | Number of millis to wait between attempts to push the commits to |
Whenever the repositoryRoot starts with a Pact protocol
+
* stubrunner.properties.git.branch (system prop)
+
* STUBRUNNER_PROPERTIES_GIT_BRANCH (env prop)
master
Which branch to checkout
* git.username (plugin prop)
+
* stubrunner.properties.git.username (system prop)
+
* STUBRUNNER_PROPERTIES_GIT_USERNAME (env prop)
Git clone username
* git.password (plugin prop)
+
* stubrunner.properties.git.password (system prop)
+
* STUBRUNNER_PROPERTIES_GIT_PASSWORD (env prop)
Git clone password
* git.no-of-attempts (plugin prop)
+
* stubrunner.properties.git.no-of-attempts (system prop)
+
* STUBRUNNER_PROPERTIES_GIT_NO_OF_ATTEMPTS (env prop)
10
Number of attempts to push the commits to origin
* git.wait-between-attempts (Plugin prop)
+
* stubrunner.properties.git.wait-between-attempts (system prop)
+
* STUBRUNNER_PROPERTIES_GIT_WAIT_BETWEEN_ATTEMPTS (env prop)
1000
Number of millis to wait between attempts to push the commits to origin
Whenever the repositoryRoot starts with a Pact protocol
(starts with pact://), the stub downloader will try
to fetch the Pact contract definitions from the Pact Broker.
Whatever is set after pact:// will be parsed as the Pact Broker URL.
Either via environment variables, system properties, properties set inside the plugin or contracts repository configuration you can tweak the downloader’s behaviour. Below you can find the list of -properties
Table 10.2. SCM Stub Downloader properties
Type of a property | Name of the property | Description |
* | Host from URL passed to | What is the URL of Pact Broker |
* | Port from URL passed to | What is the port of Pact Broker |
* | Protocol from URL passed to | What is the protocol of Pact Broker |
* | Version of the stub, or | What tags should be used to fetch the stub |
* |
| What kind of authentication should be used to connect to the Pact Broker |
* | Username used to connect to the Pact Broker | |
* | Password used to connect to the Pact Broker | |
* | false | When |