Closed sgokaram-saagie closed 4 years ago
Same issue with version 1.1.13
saagies-mbp:Gradle shivakumar$ gradle -b build.gradle.projectsCreateJob projectsCreateJob
Task :projectsCreateJob {"id":"453d7440-8561-4de8-8e0b-4452e8876c8f"}
BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed saagies-mbp:Gradle shivakumar$ gradle -b build.gradle.projectsCreateJob projectsCreateJob
Task :projectsCreateJob FAILED Something went wrong when creating project job: {"data":null,"errors":[{"cause":null,"extensions":{"name":"already used"},"errorType":"ValidationError","locations":null,"message":"Job not valid","path":null,"localizedMessage":"Job not valid","suppressed":[]}]}
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':projectsCreateJob'.
Something went wrong when creating project job: {"data":null,"errors":[{"cause":null,"extensions":{"name":"already used"},"errorType":"ValidationError","locations":null,"message":"Job not valid","path":null,"localizedMessage":"Job not valid","suppressed":[]}]}
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1s 1 actionable task: 1 executed
The plugin does not provide a clear indication of the error when jobs are created with the same name. Its very hard to debug with this generic message
saagies-mbp:Gradle shivakumar$ gradle -b build.gradle.projectsCreateJob projectsCreateJob
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':projectsCreateJob'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1s 1 actionable task: 1 executed