-
Notifications
You must be signed in to change notification settings - Fork 160
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
(Critical) Bug in Gradle Artifactory Plugin 4.5+ #131
Comments
@mvives-broadsign, |
Hi Guys You need to edit https://github.com/mvives-broadsign/ci-238-issue-gradle-artifactory/blob/master/tools/3rdparty_builder/3rdParty/build.gradle to put an artifactory repo with good credentials (I am using a standard gradle type repo with default layout (even with custom layout the issue is reproducible)) then from the folder tools/3rdparty_builder/3rdParty/, you can execute ./gradlew artifactoryPublish When I have 4.5+ on line 30, the issue happens, if I put 4.4.18, it works Let me know if something is missing in the repo. |
@mvives-broadsign, |
Hi Everyone, Furthermore the gradle-examples repository does not contain an example, when the info object is manipulated (or I failed to notice), while the one provided by mvives-broadsign has (could be the same problem). |
@nemeth-z and @mvives-broadsign,
We're looking forward to your feedback. |
@eyalbe4
I had no time to experiment too much yet, was there any change on how to configure publication sources? |
@nemeth-z, |
OK @nemeth-z, |
@eyalbe4 |
@nemeth-z,
The got the following build output:
Notice all the build-info dependencies which the build downloads from oss-snapshot-local. In case they are not downloaded, then it means that they are cached under the ~/.gradle/ directory or in the maven local repository (~/.m2/repository/) and should be removed. |
Sadly I had no time to further experiment with the snapshot, and I have to put my focus on different tasks. I will most probably won't have time working on the upgrade this year any more. |
This is still an issue with 4.7.0 and 4.7.1. Any attempt to set the BuildNumber after initial configuration results in the artifact paths not showing up in the build info. Using Gradle 4.6.1 it is not possible to downgrade back to 4.6.x so I have no workarounds. EDIT: Workaround:
|
I see a similar issue on artifactory jenkins plugin: https://issues.jenkins-ci.org/browse/JENKINS-52363 |
@eyalbe4 hi , i have same issue when i will change the ver to 4.5+ and + it will not work any news ? Noam |
@Noam-greenberrg, |
@eyalbe4 |
@Noam-greenberrg, I tried replicating this issue as follows. Can you please try the following as well? Run the gradle-example-publish project according to the instructions in the README.
Now let's add the add the following two lines to the artifactory closure in the build.gradle file:
After adding these lines, your artifactory closure should look as follows:
Now run then build again. You should get the following output:
Notice the configured custom build name and build number in the URL at the bottom line of the output: |
@Noam-greenberrg, |
I was troubleshooting a similar issue maven and jenkins today where the artifacts were deploying, they had links to the build, but the build had "No path found (externally resolved or deleted/overwritten)" and promotion from staging to release would fail. Turns out permissions on the staging repo were setup without "Annotate" and adding this permission fixed my issue. |
I was encountering the same issue with the gradle-example project. Here is the stacktrace:
|
@nan-yu, your issue is not the same at all. See that topic starter says about Also, are you trying to build JFrog project-examples? |
Added OpenShift example for nodejs
Hi Guys,
We are using the Gradle Artifactory Plugin (https://plugins.gradle.org/plugin/com.jfrog.artifactory) and it seems there is a very annoying bug in the version 4.5.0 and 4.5.1.
If we use the version 4.4.18, everything works fine but as soon as we use the version 4.5+ artifactory is no longer able to go from a build to an artifact (it shows "No path found (externally resolved or deleted/overwritten)" ), but it is still able to show the build numbers in the artifact page.
I am able to repro the issue 100% of the time so I can provide additional informations if you need
Can you have a look on that issue ?
The text was updated successfully, but these errors were encountered: