daz
8eb3291baf
Adapt to changed parameter names in DV injection script
2025-04-04 13:30:25 -06:00
Eric Haag
ceec906aa9
Reorder function arguments alphabetically
2025-03-13 08:44:52 -05:00
Remco Mokveld
9f1c708302
Specify requestOptions in constructor of HttpClient
2025-03-13 10:46:35 +01:00
Eric Haag
34dcae18f8
Add develocityAllowUntrustedServer as ShortLivedTokenClient constructor argument
2025-03-12 14:13:49 -05:00
Remco Mokveld
2ee6cdf283
Fix formatting and syntax
2025-03-12 14:13:39 +01:00
Remco Mokveld
cfdc6db0ae
Ignore SSL when environment is specified
2025-03-12 14:04:19 +01:00
bot-githubaction
bd8a9b1582
Bump references to Develocity Gradle plugin from 3.19.1 to 3.19.2
2025-02-19 02:27:57 +00:00
bot-githubaction
b426ffebae
Bump references to Develocity Gradle plugin from 3.19 to 3.19.1
2025-01-24 06:16:18 -07:00
Daz DeBoer
3bfa1140fc
Update to CCUDGP 2.1 ( #524 )
...
This change primarily impacts test projects and documentation. The only
material impact is that CCUD 2.1 will now be auto-applied when
publishing Build Scans automatically with `build-scan-publish: true`.
(Develocity injection does not hard-code any CCUD version)
2025-01-21 21:34:02 -07:00
bot-githubaction
eda5a3331f
Bump references to Develocity Gradle plugin from 3.18.2 to 3.19
2024-12-13 09:02:59 -07:00
daz
333e9d9750
Do not ignore input parameters when build-scan-publish
is enabled
...
Fixes #447
2024-11-15 14:35:41 -07:00
daz
2aa49bf6a9
Set the correct env var for develocity-ccud-plugin-version
...
Fixes #446
2024-11-15 14:31:56 -07:00
daz
9ab6ee6757
Bump to version 2.0.2 of CCUDGP
2024-11-15 14:10:13 -07:00
bot-githubaction
084b95f65a
Bump references to Develocity Gradle plugin from 3.18.1 to 3.18.2
2024-11-14 09:26:53 -07:00
bot-githubaction
5fe9264c08
Bump references to Develocity Gradle plugin from 3.18 to 3.18.1
2024-09-12 19:55:39 -06:00
Alexis Tual
765a73447c
Fix passing expiresInHours query parameter
2024-09-12 18:43:23 -06:00
bot-githubaction
089bfb1063
Bump references to Develocity Gradle plugin from 3.17.6 to 3.18
2024-08-26 10:53:40 -06:00
bot-githubaction
c3f989640d
Bump references to Develocity Gradle plugin from 3.17.5 to 3.17.6
2024-07-22 20:56:04 -06:00
Alexis Tual
bdc7162ff9
Forward the setup short-lived token Promise
...
This caused a race condition not allowing the short-lived token to be returned in time before the setup finished.
2024-06-17 19:03:10 +02:00
Daz DeBoer
719985db3d
Simplify requesting short-lived Develocity access tokens ( #259 )
...
- Always fetch a token for every hostname in the access key
- Use any tokens that are successfully fetched
- Retain access key if no tokens can be fetched
2024-06-14 21:18:08 -06:00
Inaki Villar
5f1c5827bf
handle missing access token
2024-06-14 16:44:06 -06:00
daz
8dbe9a3802
Update DV access key regex to be more selective
...
This should address the code-scanning alert
https://github.com/gradle/actions/security/code-scanning/1
2024-06-13 13:35:19 -06:00
Iñaki Villar
d0a116fff5
Adding Develocity input actions ( #244 )
...
Adding Develocity input actions.
If an input is configured in the action, it will generate the environment variable, example:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
develocity-injection-enabled: true
develocity-url: https://develocity.your-server.com
develocity-plugin-version: 3.17.4
- name: Run a Gradle build with Develocity injection enabled from input actions
run: ./gradlew build
```
This configuration will create the environment variables:
```
DEVELOCITY_INJECTION_ENABLED=true
DEVELOCITY_URL=https://develocity.your-server.com
DEVELOCITY_PLUGIN_VERSION=3.17.4
```
Relation variable-input available:
| Variable | Input |
|--------------------------------------|--------------------------------------|
| DEVELOCITY_INJECTION_ENABLED | develocity-injection-enabled |
| DEVELOCITY_URL | develocity-url |
| DEVELOCITY_ALLOW_UNTRUSTED_SERVER | develocity-allow-untrusted-server
|
| DEVELOCITY_CAPTURE_FILE_FINGERPRINTS |
develocity-capture-file-fingerprints |
| DEVELOCITY_ENFORCE_URL | develocity-enforce-url |
| DEVELOCITY_PLUGIN_VERSION | develocity-plugin-version |
| DEVELOCITY_CCUD_PLUGIN_VERSION | develocity-ccud-plugin-version |
| GRADLE_PLUGIN_REPOSITORY_URL | gradle-plugin-repository-url |
| GRADLE_PLUGIN_REPOSITORY_USERNAME | gradle-plugin-repository-username
|
| GRADLE_PLUGIN_REPOSITORY_PASSWORD | gradle-plugin-repository-password
|
2024-06-13 12:42:47 -06:00
bot-githubaction
1d2ea6e5a8
Bump references to Develocity Gradle plugin from 3.17.4 to 3.17.5
2024-06-13 10:01:04 -06:00
Bot Githubaction
30610bc983
Bump references to Develocity Gradle plugin from 3.17.3 to 3.17.4 ( #236 )
...
This PR bumps references to Develocity Gradle plugin from 3.17.3 to 3.17.4.
---------
Co-authored-by: Eric Haag <ehaag@gradle.com>
2024-05-23 08:56:09 -06:00
Alexis Tual
96b9cb4988
Set both DEVELOCITY_ACCESS_KEY and GRADLE_ENTERPRISE_ACCESS_KEY env vars ( #225 )
...
Follow up of https://github.com/gradle/actions/pull/224 , we now attempt to set both old and new access key env variables to a short lived token.
If a short-lived token cannot be obtained, then:
- DEVELOCITY_ACCESS_KEY is set to an empty string, preventing this from being used.
- GRADLE_ENTERPRISE_ACCESS_KEY is left intact, with a deprecation warning being issued.
2024-05-17 15:07:50 -06:00
Alexis Tual
500e0ee5b3
Add support for short-lived tokens ( #224 )
...
The setup-gradle action tries to get a short-lived access token given the supplied Develocity access key.
This key can be passed either with the `DEVELOCITY_ACCESS_KEY` env var or via the `develocity-access-key` input parameter.
If a token can be retrieved, then the `DEVELOCITY_ACCESS_KEY` env var will be set to the token.
Otherwise the `DEVELOCITY_ACCESS_KEY` will be set to a blank string, to avoid a leak.
---------
Co-authored-by: daz <daz@gradle.com>
2024-05-15 16:49:55 -06:00