Bug 1839322 - Jenkins agent image has issue during mvn clean package
Summary: Jenkins agent image has issue during mvn clean package
Keywords:
Status: CLOSED DUPLICATE of bug 1767806
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Jenkins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.5.0
Assignee: jawed
QA Contact: Jitendar Singh
URL:
Whiteboard:
Depends On: 1843945
Blocks: 1846957
TreeView+ depends on / blocked
 
Reported: 2020-05-23 10:40 UTC by Radomir Ludva
Modified: 2023-10-06 20:13 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1846957 (view as bug list)
Environment:
Last Closed: 2020-06-15 09:20:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
MVN clean package log (40.87 KB, text/plain)
2020-05-26 17:44 UTC, Zhigang Wang
no flags Details

Description Radomir Ludva 2020-05-23 10:40:36 UTC
Description of problem:
-----------------------
* Image: openshift4/ose-jenkins-agent:v4.4.0
* This image is not working correctly during processing: mvn clean package.
* It is important to use this image with tag:v4.3.14 but this image is not secure.


Additional info:
----------------
[ERROR] Failed to execute goal on project cim-service: Could not resolve dependencies for project com.example:cim-service:jar:CIM-306: Failed to collect dependencies at com.github.everit-org.json-schema:org.everit.json.schema:jar:1.11.1: Failed to read artifact descriptor for com.github.everit-org.json-schema:org.everit.json.schema:jar:1.11.1: Could not transfer artifact com.github.everit-org.json-schema:org.everit.json.schema:pom:1.11.1 from/to jitpack.io (https://jitpack.io): NullPointerException -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Comment 2 Zhigang Wang 2020-05-26 17:44:42 UTC
Created attachment 1692390 [details]
MVN clean package log

- Create a pom.xml (from attachment) on a dedicated folder e.g. /home/lgoral/jenkins-agent
- chmod 777  /home/lgoral/jenkins-agent
- docker run --rm -it --entrypoint "bash" --name agent -v /home/lgoral/jenkins-agent:/tmp registry.redhat.io/openshift4/ose-jenkins-agent-maven:v4.4.0 -c "sleep 10000" 
- docker exec -it agent bash
- export JAVA_HOME=/usr/lib/jvm//java-11-openjdk
- cd /tmp
- mvn clean package -X

Adding log from the last command - mvn

Comment 3 Zhigang Wang 2020-05-26 17:46:21 UTC
Hi team,

Can we please have an update on this issue? A critical customer is blocked with this issue.
Thanks.

Zhigang

Comment 5 Akram Ben Aissi 2020-06-03 13:03:31 UTC
triage: moving it to target release 4.4.z until investigation is done.
right now, it is not reproducible and the exposed case works with the 4.4.0 image.

Comment 9 Akram Ben Aissi 2020-06-15 09:20:14 UTC
fixed by https://github.com/openshift/jenkins/pull/1044

*** This bug has been marked as a duplicate of bug 1767806 ***


Note You need to log in before you can comment on or make changes to this bug.