siamaksade / openshift-jenkins-demo

CI/CD Demo on OpenShift
http://www.openshift.com
532 stars 929 forks source link

issue in pipeline build stage #71

Open sidd-harth opened 6 years ago

sidd-harth commented 6 years ago

Hi guys, I am using ocp3.7 branch & followed all the steps with sonar using manual steps. In Jenkins when I start pipeline, I get error in build stage, Any help is appreciated. Thanks

OpenShift Build cicd2/tasks-pipeline-1 Started by user developer [Pipeline] node Still waiting to schedule task Jenkins doesn’t have label maven; maven-6n30r is offline Running on maven-6n30r in /tmp/workspace/cicd2-tasks-pipeline [Pipeline] { [Pipeline] stage [Pipeline] { (Build App) [Pipeline] git Cloning the remote Git repository Cloning repository http://gogs:3000/gogs/openshift-tasks.git

git init /tmp/workspace/cicd2-tasks-pipeline # timeout=10 Fetching upstream changes from http://gogs:3000/gogs/openshift-tasks.git git --version # timeout=10 git fetch --tags --progress http://gogs:3000/gogs/openshift-tasks.git +refs/heads/:refs/remotes/origin/ git config remote.origin.url http://gogs:3000/gogs/openshift-tasks.git # timeout=10 git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 git config remote.origin.url http://gogs:3000/gogs/openshift-tasks.git # timeout=10 Fetching upstream changes from http://gogs:3000/gogs/openshift-tasks.git git fetch --tags --progress http://gogs:3000/gogs/openshift-tasks.git +refs/heads/:refs/remotes/origin/ git rev-parse refs/remotes/origin/eap-7^{commit} # timeout=10 git rev-parse refs/remotes/origin/origin/eap-7^{commit} # timeout=10 Checking out Revision 06dd2a4f1efc4b75a09928904dc91d90b32010ad (refs/remotes/origin/eap-7) Commit message: "added nexus3 repos" git config core.sparsecheckout # timeout=10 git checkout -f 06dd2a4f1efc4b75a09928904dc91d90b32010ad git branch -a -v --no-abbrev # timeout=10 git checkout -b eap-7 06dd2a4f1efc4b75a09928904dc91d90b32010ad First time build. Skipping changelog. [Pipeline] script [Pipeline] { [Pipeline] readMavenPom [Pipeline] } [Pipeline] // script [Pipeline] sh [cicd2-tasks-pipeline] Running shell script

Downloaded: http://nexus:8081/repository/maven-all-public/org/jboss/bom/jboss-eap-javaee7/7.0.1.GA/jboss-eap-javaee7-7.0.1.GA.pom (24 KB at 5.5 KB/sec) Downloading: http://nexus:8081/repository/maven-all-public/org/jboss/spec/jboss-javaee-7.0/1.0.3.Final-redhat-2/jboss-javaee-7.0-1.0.3.Final-redhat-2.pom 4/19 KB
8/19 KB
12/19 KB
16/19 KB
19/19 KB

Downloaded: http://nexus:8081/repository/maven-all-public/org/jboss/spec/jboss-javaee-7.0/1.0.3.Final-redhat-2/jboss-javaee-7.0-1.0.3.Final-redhat-2.pom (19 KB at 69.2 KB/sec) Downloading: http://nexus:8081/repository/maven-all-public/org/jboss/jboss-parent/19.0.0.redhat-2/jboss-parent-19.0.0.redhat-2.pom 4/33 KB
8/33 KB
12/33 KB
16/33 KB
20/33 KB
24/33 KB
28/33 KB
32/33 KB
33/33 KB

Downloaded: http://nexus:8081/repository/maven-all-public/org/jboss/jboss-parent/19.0.0.redhat-2/jboss-parent-19.0.0.redhat-2.pom (33 KB at 98.5 KB/sec) Downloading: http://nexus:8081/repository/maven-all-public/org/jboss/bom/jboss-eap-javaee7-with-tools/7.0.1.GA/jboss-eap-javaee7-with-tools-7.0.1.GA.pom 4/6 KB
6/6 KB

Downloaded: http://nexus:8081/repository/maven-all-public/org/jboss/bom/jboss-eap-javaee7-with-tools/7.0.1.GA/jboss-eap-javaee7-with-tools-7.0.1.GA.pom (6 KB at 34.0 KB/sec) Downloading: http://nexus:8081/repository/maven-all-public/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-bom/2.2.2/shrinkwrap-resolver-bom-2.2.2.pom

Downloading: http://nexus:8081/repository/maven-all-public/org/jboss/arquillian/arquillian-bom/1.1.11.Final/arquillian-bom-1.1.11.Final.pom

Downloading: http://nexus:8081/repository/maven-all-public/org/jboss/arquillian/extension/arquillian-drone-bom/2.0.0.Final/arquillian-drone-bom-2.0.0.Final.pom

[ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Non-resolvable import POM: Could not find artifact org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:2.2.2 in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom:jboss-eap-javaee7-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/jboss-eap-javaee7-with-tools/7.0.1.GA/jboss-eap-javaee7-with-tools-7.0.1.GA.pom, line 52, column 25 [ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.1.11.Final in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom:jboss-eap-javaee7-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/jboss-eap-javaee7-with-tools/7.0.1.GA/jboss-eap-javaee7-with-tools-7.0.1.GA.pom, line 61, column 25 [ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian.extension:arquillian-drone-bom:pom:2.0.0.Final in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom:jboss-eap-javaee7-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/jboss-eap-javaee7-with-tools/7.0.1.GA/jboss-eap-javaee7-with-tools-7.0.1.GA.pom, line 71, column 25 [ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 134, column 15 [ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.junit:arquillian-junit-container:jar is missing. @ line 139, column 15 [ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar is missing. @ line 144, column 15 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project org.jboss.quickstarts.eap:jboss-tasks-rs:7.0.0-SNAPSHOT (/tmp/workspace/cicd2-tasks-pipeline/pom.xml) has 6 errors [ERROR] Non-resolvable import POM: Could not find artifact org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:2.2.2 in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom:jboss-eap-javaee7-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/jboss-eap-javaee7-with-tools/7.0.1.GA/jboss-eap-javaee7-with-tools-7.0.1.GA.pom, line 52, column 25 -> [Help 2] [ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.1.11.Final in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom:jboss-eap-javaee7-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/jboss-eap-javaee7-with-tools/7.0.1.GA/jboss-eap-javaee7-with-tools-7.0.1.GA.pom, line 61, column 25 -> [Help 2] [ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian.extension:arquillian-drone-bom:pom:2.0.0.Final in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom:jboss-eap-javaee7-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/jboss-eap-javaee7-with-tools/7.0.1.GA/jboss-eap-javaee7-with-tools-7.0.1.GA.pom, line 71, column 25 -> [Help 2] [ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 134, column 15 [ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.junit:arquillian-junit-container:jar is missing. @ line 139, column 15 [ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar is missing. @ line 144, column 15 [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) Stage 'Test' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Code Analysis) Stage 'Code Analysis' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive App) Stage 'Archive App' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Create Image Builder) Stage 'Create Image Builder' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Image) Stage 'Build Image' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Create DEV) Stage 'Create DEV' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy DEV) Stage 'Deploy DEV' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Promote to STAGE?) Stage 'Promote to STAGE?' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy STAGE) Stage 'Deploy STAGE' skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: script returned exit code 1 Finished: FAILURE

jenkins

1 image

I have tried to deploy various branches, 3.7,3.6, 1.5 all are giving this error, **[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:2.2.2 in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom:jboss-eap-javaee7-with-tools:[unknown-version],**

@nobusue any help is appreciated. Thanks

deepjyotsingh commented 6 years ago

were you able to resolve this issue? If so, how did you fix this error? I know the connection to JBOSS repo is not working because of SSL handshake error, but not sure how to resolve it.

2018-03-07 05:42:19,450+0000 INFO [qtp2117811276-35] *UNKNOWN org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Repository status for jboss-ce changed from READY to UNAVAILABLE - reason javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target for https://repository.jboss.org

deepjyotsingh commented 6 years ago

@thoraxe @siamaksade @tqvarnst @bparry02

Would appreciate your quick response.

siamaksade commented 6 years ago

The original issue mentioned seems to be the Nexus container becoming unavailable possibly due to running out of memory on your cluster?

@deepjyotsingh I just ran it now and i don't see any certificate issues with JBoss maven repo