Problems running Liferay 7.2 application on JenkinsProblems running Liferay 7.2 application on Jenkinshttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1206830472024-03-28T20:30:25Z2024-03-28T20:30:25ZRE: Problems running Liferay 7.2 application on JenkinsKevin Matthewshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1207048042021-04-02T14:35:02Z2021-04-02T14:35:01Z<p>Hello, 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</p>
<p> </p>
<p>Thanks</p>
<p>Kevin</p>Kevin Matthews2021-04-02T14:35:01ZProblems running Liferay 7.2 application on JenkinsKevin Matthewshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1206830462021-03-11T19:10:49Z2021-03-10T23:22:35Z<p>Hello, 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 <a
href="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">https://repo.maven.apache.org/</a>.
Could anyone assist?</p>
<pre id="out">
</pre>
<pre>[Pipeline] script [Pipeline] { [Pipeline] sh </pre>
<pre>+ cd ArtifactManagerWorkSpace
+ chmod +x gradlew
+ ./gradlew clean build
Starting a Gradle Daemon (subsequent builds will be faster)
</pre>
<pre>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 '<a
href="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">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</a>'.
> Could not GET '<a
href="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">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</a>'.
> Remote host closed connection during handshake
> Could not resolve com.liferay.portal:release.portal.bom.third.party:7.2.1.
> Could not get resource '<a
href="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">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</a>'.
> Could not GET '<a
href="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">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</a>'.
> 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 '<a
href="https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom/7.2.1/release.portal.bom-7.2.1.pom">https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom/7.2.1/release.portal.bom-7.2.1.pom</a>'.
> Could not GET '<a
href="https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom/7.2.1/release.portal.bom-7.2.1.pom">https://repo.maven.apache.org/maven2/com/liferay/portal/release.portal.bom/7.2.1/release.portal.bom-7.2.1.pom</a>'.
> Remote host closed connection during handshake
> Could not resolve com.liferay.portal:release.portal.bom:7.2.1.
> Could not get resource '<a
href="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">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</a>'.
> Could not GET '<a
href="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">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</a>'.
> 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 '<a
href="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">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</a>'.
> Could not GET '<a
href="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">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</a>'.
> Remote host closed connection during handshake
> Could not resolve com.liferay.portal:release.portal.bom.compile.only:7.2.1.
> Could not get resource '<a
href="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">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</a>'.
> Could not GET '<a
href="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">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</a>'.
> 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 <a href="https://help.gradle.org/">https://help.gradle.org</a>
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
</pre>
<pre>[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script