Bug 1839322

Summary: Jenkins agent image has issue during mvn clean package
Product: OpenShift Container Platform Reporter: Radomir Ludva <rludva>
Component: JenkinsAssignee: jawed <jkhelil>
Status: CLOSED DUPLICATE QA Contact: Jitendar Singh <jitsingh>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: abenaiss, aos-bugs, dsquirre, jkhelil, pbhattac, pkanthal, vbobade, zhigwang
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1846957 (view as bug list) Environment:
Last Closed: 2020-06-15 09:20:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1843945    
Bug Blocks: 1846957    
Attachments:
Description Flags
MVN clean package log none

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 ***