Build fauiler while plublishing the plugin

瀏覽次數:75 次
跳到第一則未讀訊息

neeth...@gmail.com

未讀,
2016年10月12日 下午1:23:042016/10/12
收件者:Jenkins Developers
I am trying to publish the plugin by running the maven command below:

$ mvn -X -s settings.xml release:prepare release:perform -Dusername=... -Dpassword=...


The build fails with error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project catalogic-ecx: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] ssh: Could not resolve hostname neethapai: Name or service not known
[ERROR] fatal: The remote end hung up unexpectedly
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project catalogic-ecx: Unable to tag SCM
Provider message:
The git-push command failed.
Command output:
ssh: Could not resolve hostname neethapai: Name or service not known
fatal: The remote end hung up unexpectedly


Could you please advise on how to fix this?

Thanks

Manfred Moser

未讀,
2016年10月12日 下午1:26:102016/10/12
收件者:Jenkins Developers
Looks like your plugin github scm url is wrong. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/608c2f9e-8603-4905-8828-b76f9436eaf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

neeth...@gmail.com

未讀,
2016年10月12日 下午2:05:342016/10/12
收件者:Jenkins Developers

Here is the output with -X option

[INFO] Resuming release from phase 'scm-tag'
[INFO] Tagging release with the label catalogic-ecx-1.0...
[DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
[DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
[DEBUG] ScmTagPhase :: fileSet  basedir = /home/npai/catalogic-ecx-plugin; files = []
[INFO] Executing: /bin/sh -c cd /home/npai/catalogic-ecx-plugin && git tag -F /tmp/maven-scm-105320297.commit catalogic-ecx-1.0
[INFO] Working directory: /home/npai/catalogic-ecx-plugin
[INFO] Executing: /bin/sh -c cd /home/npai/catalogic-ecx-plugin && git push neethapai:********@github.com:jenkinsci/catalogic-ecx-plugin.git refs/tags/catalogic-ecx-1.0
[INFO] Working directory: /home/npai/catalogic-ecx-plugin
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.249 s
[INFO] Finished at: 2016-10-12T14:00:12-04:00
[INFO] Final Memory: 18M/491M
[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project catalogic-ecx: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] ssh: Could not resolve hostname neethapai: Name or service not known
[ERROR] fatal: The remote end hung up unexpectedly
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project catalogic-ecx: Unable to tag SCM
Provider message:
The git-push command failed.
Command output:
ssh: Could not resolve hostname neethapai: Name or service not known
fatal: The remote end hung up unexpectedly

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to tag SCM

Provider message:
The git-push command failed.
Command output:
ssh: Could not resolve hostname neethapai: Name or service not known
fatal: The remote end hung up unexpectedly

    at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:294)
    at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:240)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 20 more
Caused by: org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to tag SCM

Provider message:
The git-push command failed.
Command output:
ssh: Could not resolve hostname neethapai: Name or service not known
fatal: The remote end hung up unexpectedly

    at org.apache.maven.shared.release.phase.ScmTagPhase.execute(ScmTagPhase.java:136)
    at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:234)
    at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:169)
    at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:146)
    at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:107)
    at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:286)
    ... 23 more
[ERROR]
[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/MojoFailureException

Manfred Moser

未讀,
2016年10月12日 下午2:07:082016/10/12
收件者:Jenkins Developers
What does the scm element in your pom look like? 

E.g. a correct setup can be seen here


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

neeth...@gmail.com

未讀,
2016年10月12日 下午4:25:542016/10/12
收件者:Jenkins Developers
scm element in pom file has the following content

<scm>
  <connection>scm:git:https://github.com/jenkinsci/catalogic-ecx-plugin.git</connection>
  <developerConnection>scm:git:https://github.com/jenkinsci/catalogic-ecx-plugin.git</developerConnection>
  <url>https://github.com/jenkinsci/catalogic-ecx-plugin</url>
</scm>

Manfred Moser

未讀,
2016年10月12日 下午6:35:432016/10/12
收件者:Jenkins Developers
You cant use https in the scm section. You ahve to use ssh as in the example I linked earleir

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

neeth...@gmail.com

未讀,
2016年10月13日 上午11:50:572016/10/13
收件者:Jenkins Developers
<scm>
  <connection>scm:git:ssh://github.com/jenkinsci/catalogic-ecx-plugin.git</connection>
  <developerConnection>scm:git:ssh://g...@github.com/jenkinsci/catalogic-ecx-plugin.git</developerConnection>
ssh also dint work. I an getting the same error as before


Manfred Moser

未讀,
2016年10月13日 中午12:14:332016/10/13
收件者:Jenkins Developers
Then something with your git/ssh and auth setup is wrong.

manfred

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
回覆所有人
回覆作者
轉寄
0 則新訊息