-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 3738 download and attach agent #120
Conversation
...-plugin/src/main/java/com/contrastsecurity/gradle/plugin/ContrastConfigurationExtension.java
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/ContrastGradlePlugin.java
Show resolved
Hide resolved
I still don't know why this is happening yet. I think it's because my test was running with |
This was it, lol. The agent was using the same configurations I provided to the SDK, which hits similar endpoints but requires that |
...-plugin/src/main/java/com/contrastsecurity/gradle/plugin/ContrastConfigurationExtension.java
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/InstallAgentTask.java
Outdated
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/InstallAgentTask.java
Outdated
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/InstallAgentTask.java
Outdated
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/ContrastGradlePlugin.java
Outdated
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/InstallAgentTask.java
Outdated
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/InstallAgentTask.java
Outdated
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/InstallAgentTask.java
Outdated
Show resolved
Hide resolved
gradle-plugin/src/main/java/com/contrastsecurity/gradle/plugin/InstallAgentTask.java
Show resolved
Hide resolved
3c54035
to
c33547a
Compare
In this PR
InstallAgentTask
which downloads the agent if one is not supplied and can attach the agent to specified tasks (in this case hardcoded toTest
tasks) via java args.ContrastConfigurationExtension
EndToEndTests
which require gradle properties to run to avoid accidentally hammering TS with requests for new agentsTODO (tickets linked if exist)