• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • artifactory-plugin
    • None
    • Red Hat Enterprise Linux release 9.3 (Plow)
      jenkins v2.426.2
      artifactory plugin v4.0.1

      artifactory plugin v4.0.1 -> ERR
      [Pipeline] newBuildInfo

      [Pipeline] artifactoryMavenBuild

      [Pipeline]

      [Pipeline] // stage

      [Pipeline] echo

      Mark pipeline as FAILED due to exception: java.lang.RuntimeException: java.lang.RuntimeException: java.nio.file.NoSuchFileException: /PATH_WORKSPACE@tmp/artifactory/buildInfo16773654138834561428.properties
       

      artifactory plugin v4.0.0 -> OK
      [Pipeline] newBuildInfo

      [Pipeline] artifactoryMavenBuild

      Jenkins Artifactory Plugin version: 4.0.0
      Artifactory integration is enabled

          [JENKINS-72471] artifactory buildInfo file not found

          Alex Hendriks added a comment -

          swamygoud18 No, not only with gradle. We have java jobs and have the same problem.

          Alex Hendriks added a comment - swamygoud18 No, not only with gradle. We have java jobs and have the same problem.

          Or added a comment -

          leoqa, I followed the exact steps you provided, but unfortunately, I couldn't replicate the issue on my end. I strongly believe that the problem might be related to cache issues, possibly caused by remnants of the old Artifactory plugin still persisting in the cache. Could you please try running this in a new Jenkins application and see if it reproduces the same issue?

          Or added a comment - leoqa , I followed the exact steps you provided, but unfortunately, I couldn't replicate the issue on my end. I strongly believe that the problem might be related to cache issues, possibly caused by remnants of the old Artifactory plugin still persisting in the cache. Could you please try running this in a new Jenkins application and see if it reproduces the same issue?

          Swamy added a comment - - edited

          ortil  - we uses the dynamic slave configuration and new slave with every build is also causing the same issue and as you suggested we also created new master and has the same issue. for some reason as I said - we only seeing this error with gradle in our case and using the publish code is same as leoqa mentioned.

           

          Here is the full error/exception details  ortil  :

           
          12:30:00 java.io.FileNotFoundException: /home/jenkins/agent/workspace/java-gradle-lib-reg-test@tmp/artifactory/buildInfo1268983877369591775.properties (No such file or directory)12:30:00 at java.base/java.io.FileOutputStream.open0(Native Method)12:30:00 at java.base/java.io.FileOutputStream.open(Unknown Source)12:30:00 at java.base/java.io.FileOutputStream.<init>(Unknown Source)12:30:00 at java.base/java.io.FileOutputStream.<init>(Unknown Source)12:30:00 at org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration.persistToPropertiesFile(ArtifactoryClientConfiguration.java:241)12:30:00 Caused: java.lang.RuntimeException*12:30:00* at org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration.persistToPropertiesFile(ArtifactoryClientConfiguration.java:244)12:30:00 at org.jfrog.hudson.util.ExtractorUtils.savePropertiesToFile(ExtractorUtils.java:587)12:30:00 at org.jfrog.hudson.util.ExtractorUtils.persistConfiguration(ExtractorUtils.java:565)12:30:00 at org.jfrog.hudson.pipeline.common.executors.EnvExtractor.persistConfiguration(EnvExtractor.java:96)12:30:00 at org.jfrog.hudson.pipeline.common.executors.EnvExtractor.execute(EnvExtractor.java:75)
           

          and I am able to reproduce the same error with your example reference - gradle-example-publish(https://github.com/jfrog/project-examples/tree/master/gradle-examples/gradle-example-publish) also. 

           

           

          Swamy added a comment - - edited ortil   - we uses the dynamic slave configuration and new slave with every build is also causing the same issue and as you suggested we also created new master and has the same issue. for some reason as I said - we only seeing this error with gradle in our case and using the publish code is same as leoqa mentioned.   Here is the full error/exception details   ortil   :   12:30:00 java.io.FileNotFoundException: /home/jenkins/agent/workspace/java-gradle-lib-reg-test@tmp/artifactory/buildInfo1268983877369591775.properties (No such file or directory) 12:30:00 at java.base/java.io.FileOutputStream.open0(Native Method) 12:30:00 at java.base/java.io.FileOutputStream.open(Unknown Source) 12:30:00 at java.base/java.io.FileOutputStream.<init>(Unknown Source) 12:30:00 at java.base/java.io.FileOutputStream.<init>(Unknown Source) 12:30:00 at org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration.persistToPropertiesFile(ArtifactoryClientConfiguration.java:241) 12:30:00 Caused: java.lang.RuntimeException*12:30:00* at org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration.persistToPropertiesFile(ArtifactoryClientConfiguration.java:244) 12:30:00 at org.jfrog.hudson.util.ExtractorUtils.savePropertiesToFile(ExtractorUtils.java:587) 12:30:00 at org.jfrog.hudson.util.ExtractorUtils.persistConfiguration(ExtractorUtils.java:565) 12:30:00 at org.jfrog.hudson.pipeline.common.executors.EnvExtractor.persistConfiguration(EnvExtractor.java:96) 12:30:00 at org.jfrog.hudson.pipeline.common.executors.EnvExtractor.execute(EnvExtractor.java:75)   and I am able to reproduce the same error with your example reference -  gradle-example-publish( https://github.com/jfrog/project-examples/tree/master/gradle-examples/gradle-example-publish ) also.     

          Swamy added a comment -

          do we have any updates on this issue ortil or are we still looking for more details.?

          Swamy added a comment - do we have any updates on this issue ortil or are we still looking for more details.?

          Or added a comment -

          swamygoud18, I have opened a PR to fix this issue. I will update this ticket once we release it

          Or added a comment - swamygoud18 , I have opened a PR to fix this issue. I will update this ticket once we release it

          Swamy added a comment -

          Thank you very much ortil !!

          Swamy added a comment - Thank you very much ortil !!

          Lee Leibke added a comment -

          Thanks ortil 

          Lee Leibke added a comment - Thanks ortil  

          Or added a comment -

          leoqa & swamygoud18 Artifactory Jenkins plugin 4.0.4 has been released. 

          Feel free to upgrade. We'd appreciate your feedback on that.

          Or added a comment - leoqa & swamygoud18 Artifactory Jenkins plugin 4.0.4 has been released.  Feel free to upgrade. We'd appreciate your feedback on that.

          Lee Leibke added a comment -

          ortil sorry, but I may not be able to get to this for a couple of weeks yet.

          I will post back here when I am able to and let you know the results.

          Thanks.

          Lee Leibke added a comment - ortil sorry, but I may not be able to get to this for a couple of weeks yet. I will post back here when I am able to and let you know the results. Thanks.

          Lee Leibke added a comment -

          ortil finally got around to updating Jenkins and this plugin.  

          We are now on version 4.0.8 of this plugin and we are having no issues.

          Thanks for taking care of this.

          Lee Leibke added a comment - ortil finally got around to updating Jenkins and this plugin.   We are now on version 4.0.8 of this plugin and we are having no issues. Thanks for taking care of this.

            eyalbe Eyal Ben Moshe
            daniel_virasto daniel virasto
            Votes:
            13 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated: