Message Boards
Problems running Liferay 7.2 application on Jenkins
Problems running Liferay 7.2 application on Jenkins
Expert Posts: 253 Join Date: 1/25/16 Recent PostsHello, I have successfully built my Liferay 7.2 application on my PC and run it on my local PC that calls out to our nexus server to dowload liferay dependencies. However, I am facing problems running the application Liferay on Jenkins. I have created a pipeline to checkout my application from my bitbucket branch but when it goes to do gradlew clean build I am getting the followin errors. Its not going to our nexus server for the dependencies but it goes outside maven repo https://repo.maven.apache.org/. Could anyone assist?
[Pipeline] script [Pipeline] { [Pipeline] sh
+ cd ArtifactManagerWorkSpace + chmod +x gradlew + ./gradlew clean build Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':wars:ArtifactManagerTheme:buildTheme'. > Could not resolve all files for configuration ':wars:ArtifactManagerTheme:parentThemes'. > Could not find com.liferay:com.liferay.frontend.theme.styled:. Required by: project :wars:ArtifactManagerTheme > Could not find com.liferay:com.liferay.frontend.theme.unstyled:. Required by: project :wars:ArtifactManagerTheme > Could not resolve com.liferay.portal:release.portal.bom.third.party:7.2.1. Required by: project :wars:ArtifactManagerTheme > Could not resolve com.liferay.portal:release.portal.bom.third.party:7.2.1. > Could not get resource 'https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom.third.party/7.2.1/release.portal.bom.third.party-7.2.1.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom.third.party/7.2.1/release.portal.bom.third.party-7.2.1.pom'. > Remote host closed connection during handshake > Could not resolve com.liferay.portal:release.portal.bom.third.party:7.2.1. > Could not get resource 'https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom.third.party/7.2.1/release.portal.bom.third.party-7.2.1.pom'. > Could not GET 'https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom.third.party/7.2.1/release.portal.bom.third.party-7.2.1.pom'. > Remote host closed connection during handshake > Could not resolve com.liferay.portal:release.portal.bom:7.2.1. Required by: project :wars:ArtifactManagerTheme > Could not resolve com.liferay.portal:release.portal.bom:7.2.1. > Could not get resource 'https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom/7.2.1/release.portal.bom-7.2.1.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom/7.2.1/release.portal.bom-7.2.1.pom'. > Remote host closed connection during handshake > Could not resolve com.liferay.portal:release.portal.bom:7.2.1. > Could not get resource 'https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom/7.2.1/release.portal.bom-7.2.1.pom'. > Could not GET 'https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom/7.2.1/release.portal.bom-7.2.1.pom'. > Remote host closed connection during handshake > Could not resolve com.liferay.portal:release.portal.bom.compile.only:7.2.1. Required by: project :wars:ArtifactManagerTheme > Could not resolve com.liferay.portal:release.portal.bom.compile.only:7.2.1. > Could not get resource 'https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom.compile.only/7.2.1/release.portal.bom.compile.only-7.2.1.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom.compile.only/7.2.1/release.portal.bom.compile.only-7.2.1.pom'. > Remote host closed connection during handshake > Could not resolve com.liferay.portal:release.portal.bom.compile.only:7.2.1. > Could not get resource 'https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom.compile.only/7.2.1/release.portal.bom.compile.only-7.2.1.pom'. > Could not GET 'https://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/portal/release.portal.bom.compile.only/7.2.1/release.portal.bom.compile.only-7.2.1.pom'. > Remote host closed connection during handshake * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 6s [Pipeline] } [Pipeline] // script Error when executing success post condition: hudson.AbortException: script returned exit code 1 at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.handleExit(DurableTaskStep.java:658) at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.check(DurableTaskStep.java:604) at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.run(DurableTaskStep.java:548) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] emailext
[Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: script returned exit code 1 Finished: FAILURE
RE: Problems running Liferay 7.2 application on Jenkins
Expert Posts: 253 Join Date: 1/25/16 Recent PostsHello, I was able to have my Liferay 7.2 Workspace application run and build successfully on my local Jenkins all dependencies were resolved. But when I try to run my Liferay workspace using Jenkins pipeline project its not accessing our local nexus repo but goes outside whihc get connection error resulted into dependency resolution failure. Its weird it runs on my local PC but not on remote build server. Can someone advise
Thanks
Kevin