Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-pages: Missing persmissions in GitHub repo (release fails) #16

Closed
oleg-nenashev opened this issue Feb 7, 2015 · 7 comments
Closed
Assignees

Comments

@oleg-nenashev
Copy link
Member

Seems several GitHub permissions are missing on my account.

  • mvn:release step was able to create an empty version (seems to be OK)
  • the tag has been also added => commit & push operations work well
  • winp-1.23 snapshot is also available on Maven Central
  • I was able to commit to gh-pages directly ( db20e0c )
  • Seems https://github.com/kohsuke/wagon-gitsite somehow takes a wrong Git installation or ignores GIT_SSH variable
[INFO] [INFO] --- maven-site-plugin:3.3:deploy (default-deploy) @ winp ---
[INFO] [INFO] Parent project loaded from repository: org.kohsuke:pom:pom:10
[INFO] scm:git:ssh://github.com/kohsuke/winp.git/ - Session: Opened
[INFO] [INFO] Pushing /remote/ru20home1/nenashev/Documents/jenkins/libs/winp/target/checkout/target/site
[INFO] [INFO]    >>> to scm:git:ssh://github.com/kohsuke/winp.git/./
[INFO] Uploading: ./ to scm:git:ssh://github.com/kohsuke/winp.git/
[INFO]
[INFO] [INFO] Executing: /bin/sh -c cd /remote/ru20home1/nenashev/Documents/jenkins/libs/winp/target/checkout/. && git ls-files
[INFO] [INFO] Working directory: /remote/ru20home1/nenashev/Documents/jenkins/libs/winp/target/checkout/.
[INFO] [INFO] Executing: /bin/sh -c cd /tmp/wagon-scm324908943.checkout && git init
[INFO] [INFO] Working directory: /tmp/wagon-scm324908943.checkout
[INFO] [INFO] Executing: /bin/sh -c cd /tmp/wagon-scm324908943.checkout && git remote add origin ssh://github.com/kohsuke/winp.git
[INFO] [INFO] Working directory: /tmp/wagon-scm324908943.checkout
[INFO] [INFO] Executing: /bin/sh -c cd /tmp/wagon-scm324908943.checkout && git pull origin refs/heads/gh-pages
[INFO] [INFO] Working directory: /tmp/wagon-scm324908943.checkout
[INFO]  Transfer error: org.apache.maven.scm.ScmException: Unable to commit file. The git-pull command failed. Permission denied (publickey).
[INFO] fatal: The remote end hung up unexpectedly
[INFO]
[INFO] scm:git:ssh://github.com/kohsuke/winp.git/ - Session: Disconnecting
[INFO] scm:git:ssh://github.com/kohsuke/winp.git/ - Session: Disconnected
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 55.243 s
[INFO] [INFO] Finished at: 2015-02-17T08:45:39+03:00
[INFO] [INFO] Final Memory: 39M/367M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:deploy (default-deploy) on project winp: Error uploading site: Error checking out: Unable to commit file. The git-pull command failed. Permission denied (publickey).
[INFO] [ERROR] fatal: The remote end hung up unexpectedly
[INFO] [ERROR] -> [Help 1]
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:08 min
[INFO] Finished at: 2015-02-17T08:45:40+03:00
[INFO] Final Memory: 11M/233M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:perform (default-cli) on project winp: Maven execution failed, exit code: '1' -> [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/MojoExecutionException
@kohsuke
Copy link
Member

kohsuke commented Feb 16, 2015

I see that it is git pull that fails, not git push. What happens when you run git pull origin refs/heads/gh-pages manually?

@oleg-nenashev
Copy link
Member Author

It works well. I suspect a wrong Git installation is being used by wagon-git ( I have Cygwin and msysgit installations)

@kohsuke
Copy link
Member

kohsuke commented Feb 16, 2015

I doubt the code is doing any PATH manipulation before forking off cmd.exe.

@oleg-nenashev
Copy link
Member Author

According to the code, there's no such steps.
I'll try to release from Linux in order to have a clean reproduction scenario.

@oleg-nenashev
Copy link
Member Author

  • The same issue happens on Linux (I'll update the log)
  • git pull origin refs/heads/gh-pages works well in the manual mode
-bash-4.1$ git pull origin refs/heads/gh-pages
From ssh://github.com/kohsuke/winp
 * branch            gh-pages   -> FETCH_HEAD
Merge made by recursive.
 CNAME                                              |    1 +
 apidocs/allclasses-frame.html                      |   25 +
 apidocs/allclasses-noframe.html                    |   25 +
 apidocs/constant-values.html                       |  179 ++++++++
 apidocs/deprecated-list.html                       |  115 +++++

@oleg-nenashev
Copy link
Member Author

Seems the issue has been caused by khuxtable/wagon-gitsite#10

@oleg-nenashev
Copy link
Member Author

Nothing to do on winp side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants