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
Jenkins job is failing to load the local jar from lib folder. #3567
Comments
Hi @Bhagyashri-Sapnar , the behavior is expected as there are no mention of a local JAR ("Maven External Dependency") in the So Maven tries to retrieve the dependency based on its configuration (using the local "Artifact Caching Proxy") but this artefact does not exist on the Jenkins Artifiactory (https://repo.jenkins-ci.org/artifactory/public/com/qualys/). You have to, in short term, fix your But please be aware it's a deprecated feature of Maven as per the documentation so you'll need a longer term solution: is there a Maven repository where these aretafcts are published? |
@dduportal, |
Oh I see, I missed this markup. It means an exception si to be added to the mirroring system we use for artifact caching, which should exlude (e.g. not trying to forward requests to the artifact caching proxy) any Maven repository which ID would be |
…id `in-project` nor `local` Related to jenkins-infra/helpdesk#3567 (comment) Twin of jenkins-infra/jenkins-infra#2821
~Testing manually with the caching proxy exception: https://ci.jenkins.io/job/Plugins/job/qualys-cs-plugin/job/hotfix%252F1.6.2.7/6/ ~ build cancelled. Opened a PR to your hotfix branch instead: jenkinsci/qualys-cs-plugin#41 => let's see if it fixes the build while keeping caching proxy |
@Bhagyashri-Sapnar the PR I sent went fine, your problem should be solved. Can you confirm? |
Hi @dduportal, Can you please confirm if below parameters needed to set in jenkinsfile. if we remove it from the jenkinsfile any impact on plugin will have? useArtifactCachingProxy: true, useContainerAgent: true. |
@Bhagyashri-Sapnar I've responded to your question here: jenkinsci/qualys-cs-plugin#41 (comment) |
The PR was merged, and the build number 8 on the branch Feel free to reopen if you see another issue. |
…mirroring - https://maven.apache.org/guides/mini/guide-mirror-settings.html#AdvancedMirrorSpecification mentions that `external:*` is a pattern matching "all repositories" except URLs to localhost or file based. - Found in jenkinsci/maven-hpi-plugin#537 which pointed to https://maven.apache.org/plugins/maven-invoker-plugin/examples/fast-use.html#fast-build-configuration-mergeusersettings-and-mirrors - Remove the `!local` exception added as part of jenkins-infra/helpdesk#3567 (replaced by the `external:` pattern) Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
…mirroring - https://maven.apache.org/guides/mini/guide-mirror-settings.html#AdvancedMirrorSpecification mentions that `external:*` is a pattern matching "all repositories" except URLs to localhost or file based. - Found in jenkinsci/maven-hpi-plugin#537 which pointed to https://maven.apache.org/plugins/maven-invoker-plugin/examples/fast-use.html#fast-build-configuration-mergeusersettings-and-mirrors - Remove the `!local` exception added as part of jenkins-infra/helpdesk#3567 (replaced by the `external:` pattern) Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
…mirroring (#3070) - https://maven.apache.org/guides/mini/guide-mirror-settings.html#AdvancedMirrorSpecification mentions that `external:*` is a pattern matching "all repositories" except URLs to localhost or file based. - Found in jenkinsci/maven-hpi-plugin#537 which pointed to https://maven.apache.org/plugins/maven-invoker-plugin/examples/fast-use.html#fast-build-configuration-mergeusersettings-and-mirrors - Remove the `!local` exception added as part of jenkins-infra/helpdesk#3567 (replaced by the `external:` pattern) Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
…mirroring (#4355) - https://maven.apache.org/guides/mini/guide-mirror-settings.html#AdvancedMirrorSpecification mentions that `external:*` is a pattern matching "all repositories" except URLs to localhost or file based. - Found in jenkinsci/maven-hpi-plugin#537 which pointed to https://maven.apache.org/plugins/maven-invoker-plugin/examples/fast-use.html#fast-build-configuration-mergeusersettings-and-mirrors - Remove the `!local` exception added as part of jenkins-infra/helpdesk#3567 (replaced by the `external:` pattern) Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
For info, a new update of the mirroring system was deployed: jenkins-infra/jenkins-infra#3070. Currently checking the impact on ci.jenkins.io's build of your plugin (tried locally with the new setup and it looked good) |
Service(s)
ci.jenkins.io
Summary
Getting below error in jenkins job build for qualys-cs-plugin
[ERROR] Failed to execute goal on project qualys-cs: Could not resolve dependencies for project com.qualys.plugins:qualys-cs:hpi:1.6.2.7-SNAPSHOT: The following artifacts could not be resolved: com.qualys:cs-plugin-common:jar:1.2.4 (absent): Could not find artifact com.qualys:cs-plugin-common:jar:1.2.4 in azure-proxy (https://repo.azure.jenkins.io/public/) -> [Help 1].
Job link:https://ci.jenkins.io/job/Plugins/job/qualys-cs-plugin/job/hotfix%252F1.6.2.7/3/console
stash repo link: https://github.com/jenkinsci/qualys-cs-plugin
branch:https://github.com/jenkinsci/qualys-cs-plugin/tree/hotfix/1.6.2.7.
Reproduction steps
https://ci.jenkins.io/job/Plugins/job/qualys-cs-plugin/job/hotfix%252F1.6.2.7/
The text was updated successfully, but these errors were encountered: