I am experiencing a strange issue when trying to publish builds from my Jenkins CI server to our artifactory repository with Gradle as the build system.
I am running my running Jenkins as a docker container using the unmodified official image. Jenkins home is in a volume. I'm using the artifactory plugin to publish the build artifactory.
The first build i run when starting the container succeeds and i can see the files published in artifactory. All subsequent builds fail with the gradle error message:
Execution failed for task ':artifactoryPublish'.
> Context URL cannot be empty
If i restart the contianer the first build succeeds again!
The only difference i can spot in digging through the logs is that the succesfull builkds all have a line like this:
[buildinfo] Properties file found at '/tmp/buildInfo3432589088254353250.properties'
Failing builds do not.
I'm happy to provide any additional information to help debug this; just let me know what would help?