-
Notifications
You must be signed in to change notification settings - Fork 16
Connection timed out github.com on Tagging #97
Comments
Hi, I think this issue is caused by the access token stuff. I've never tried this authentication mehtod and I'm pretty sure this doesn't work yet. Could you try to access your repository using basic auth or ssh authentication for the first? I'll take this one over to the git provider and will see what can be done there. Btw. there is no need to set these env variables by hand. The Jenkins plugin does this implicitly based on the credentials when invoking the Maven plugin. This is only crutch for handing over the SCM credentials to the plugin without exposing them in Jenkins. |
Issue is now tracked here: unleash-scm-provider-git (issue #12). |
Thanks for the fast response. I removed the two-factor authentication and ran the build again. I got the same error ... which makes me think I have incorrectly configured something. The same user credentials are used to fetch the repo so I don't know what it could be. Any additional help on this would be hugely appreciated. The logs for this latest test: Fetching changes from the remote Git repository
[DEBUG] readpipe [git, config, --system, --edit],/usr/bin [INFO] Executing the standard workflow of the goal thanks, |
I got past that Connection Timeout error as it was due to my corporate proxy. Didn't think it was a proxy as the Git plugin was able to fetch. But that is using a proxy config that the unleash plugin doesn't use. I set the environment variables (http.proxyHost, http.proxyPort, https.proxyHost, https.proxyPort) and I got further. I will test with the personal access token to see if it works too. However I am getting another error but haven't had time to troubleshoot: [INFO] 14:38:28,039 Deploying the release artifacts into the distribution repository |
I haven't been able to get past this recent error now. I followed some instructions about making sure I have additional behaviours set in the Jenkins configuration: But still the error exists |
Hi,
I have just configured my pom to use unleash-maven-plugin and have installed the unleash Jenkins plugin as well. I get an error when the unleash plugin reaches the tag stage. My repository is hosted on Github and I have a personal access token setup to authenticate with. The git credentials I am using are the same I have for the Git plugin to connect to GitHub with. I got the below exception running in Jenkins and also by running the command line Jenkins was using, as shown below (where you see <removed> I just replaced all project names and paths that did exist with this placeholder) :
mvn -B -f /build/workspace/<removed>/pom.xml -s /home/blduser/.m2/settings.xml unleash:perform -X -Dunleash.releaseArgs=skipTests=true -Dunleash.tagNamePattern=@{project.version} -Dunleash.scmMessagePrefix=[unleash-maven-plugin] -DenableLogTimestamps=true -Dunleash.releaseVersion=2.63.0 -Dunleash.developmentVersion=2.64.0-SNAPSHOT -Dunleash.allowLocalReleaseArtifacts=true -Dunleash.commitBeforeTagging=false -e -X -Dunleash.scmUsernameEnvVar=UNLEASH_SCM_USERNAME -Dunleash.scmPasswordEnvVar=UNLEASH_SCM_PASSWORD
I set UNLEASH_SCM_USERNAME env variable to my Github user and UNLEASH_SCM_PASSWORD to the generated personal access token
Logs:
...
[INFO] 10:18:37,290 Checking remote SCM repository for changes. Initial revision was 1fef10e7902fadad6846a81b202943031d64d7ab
[DEBUG] 10:18:37,291 No commit before tagging requested. Checking for SCM changes at this point unnessecary!
[INFO] 10:18:37,291 Tagging local and remote SCM repositories.
[DEBUG] 10:18:37,291 Updating SCM connection tags in POM of module '<removed>:2.63.0'
[INFO] 10:18:37,356 Git - Searching for Git tag '2.63.0'
[DEBUG] 10:18:37,365 Git - Query info:
- TAG_NAME: 2.63.0
- WORKING_DIR: /build/workspace/<removed>
- REMOTE: affinity-ipm
- REMOTE_URL: https://github.com/<removed>.git
[ERROR] An exception was caught while processing the workflow step with id 'tagScm'.
com.itemis.maven.plugins.unleash.scm.ScmException: An error occurred while querying the remote git repository for tag '2.63.0'.
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:622)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
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:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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.eclipse.jgit.api.errors.TransportException: https://github.com/<removed>.git: cannot open git-upload-pack
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:220)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
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:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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.eclipse.jgit.errors.TransportException: https://github.com/<removed>.git: cannot open git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:510)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:288)
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:198)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
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:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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: java.net.ConnectException: Connection timed out github.com
at org.eclipse.jgit.util.HttpSupport.response (HttpSupport.java:197)
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:461)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:288)
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:198)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
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:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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)
Could the connection timing out because of the personal access token authentication mechanism I am using?
The text was updated successfully, but these errors were encountered: