Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-692

Gradle "Context URL cannot be empty" issue


    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 2.4.6
    • Fix Version/s: None
    • Component/s: Gradle
    • Environment:

      Jenkins ver. 1.642.1, Artifactory Plugin Ver 2.4.7, gradle ver 2.6


      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?




            • Assignee:
              eyalbe Eyal Ben Moshe (Inactive)
              bobbobson Bob Bobson
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created: