Re: Jenkins CLI, trouble installing plugin from local hpi

2016-08-04 Thread James Richard
This is a plugin that I have created, it is not bundled with Jenkins.  And 
like I said, manually installing it, downgrading, uninstalling, etc. works 
fine when they are done manually but when using the Jenkins CLI it has the 
errors I described in the first comment.

When installing a plugin manually, it creates a {plugin-name}.bak file but 
when I use the CLI it creates a {plugin-name}-{version}.bak.  I assume this 
might be the cause of the issue

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/63e6c029-c2a1-4a0e-8b0f-f8969d440e55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins CLI, trouble installing plugin from local hpi

2016-07-27 Thread James Richard
Manually uploading the files to the server works fine, I can 
upgrade/downgrade and install any specific version without trouble. There 
is only an issue when I use the Jenkins CLI

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b26b41b5-f304-444c-a366-85abcba36e6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins CLI, trouble installing plugin from local hpi

2016-07-27 Thread James Richard
Using Jenkins 1.642.4, I installed an older version of my plugin from a 
local hpi using the Jenkins CLI and did a safe restart.  When I try to 
install a newer version from a local hpi using the Jenkins 
CLI, http://localhost:8080/pluginManager/installed still shows the older 
version is installed even after a safe restart.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/de5c8056-67cb-4a6b-87bd-6a980f4b3ed6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GIT client plugin proxy authentication

2015-07-09 Thread James Richard
I see that the code is still in the git client but as you can see from the 
stack trace I provided it no longer seems to work correctly.

On Monday, July 6, 2015 at 2:43:34 PM UTC-4, Mark Waite wrote:
>
> I'm not aware of anyone else reporting an issue using git through an 
> authenticating http proxy.  The code is still in the git client plugin to 
> handle that case. 
> https://github.com/jenkinsci/git-client-plugin/blob/master/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java#L1324
>  
>
> I don't have an authenticating http proxy available, so I don't test that 
> case.
>
> Mark Waite
>
> On Mon, Jul 6, 2015 at 11:41 AM James Richard  > wrote:
>
>> Jenkins : 1.580.2
>> Git plugin : 2.3.5
>> Git client plugin : 1.17.1
>>
>>  > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
>> Fetching changes from the remote Git repository
>>  > /usr/bin/git config remote.origin.url http://.../repo.git # timeout=10
>> Fetching upstream changes from http://.../repo.git
>>
>>  > /usr/bin/git --version # timeout=10
>> Setting http proxy: qaproxy:3128
>>  > /usr/bin/git fetch --tags --progress http://.../repo.git 
>> +refs/heads/*:refs/remotes/origin/*
>> ERROR: Error fetching remote repo 'origin'hudson.plugins.git.GitException 
>> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>>  Failed to fetch from http://.../repo.git
>>  at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method>
>>  at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method>
>>  at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
>>  at hudson.scm.SCM.checkout(SCM.java:488) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM.checkout&entity=method>
>>  at hudson.model.AbstractProject.checkout(AbstractProject.java:1257) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
>>  at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method>
>>  at 
>> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
>> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method>
>>  at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
>>  at hudson.model.Run.execute(Run.java:1745) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
>>  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
>>  at hudson.model.ResourceController.execute(ResourceController.java:89) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
>>  at hudson.model.Executor.run(Executor.java:240) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
>> Caused by: hudson.plugins.git.GitException 
>> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>>  Command "/usr/bin/git fetch --tags --progress http://.../repo.git 
>> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
>> stdout: 
>> stderr: error: The requested URL returned error: 407 while accessing 
>> http://.../repo.git/info/refs
>>
>> fatal: HTTP request failed
>>
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591)
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379)
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86)
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324)
>>  at hudson.plugins.git.GitSCM.fetchFro

GIT client plugin proxy authentication

2015-07-06 Thread James Richard
Jenkins : 1.580.2
Git plugin : 2.3.5
Git client plugin : 1.17.1

 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /usr/bin/git config remote.origin.url http://.../repo.git # timeout=10
Fetching upstream changes from http://.../repo.git

 > /usr/bin/git --version # timeout=10
Setting http proxy: qaproxy:3128
 > /usr/bin/git fetch --tags --progress http://.../repo.git 
 > +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'hudson.plugins.git.GitException 
:
 Failed to fetch from http://.../repo.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) 

at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) 

at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016) 

at hudson.scm.SCM.checkout(SCM.java:488) 

at hudson.model.AbstractProject.checkout(AbstractProject.java:1257) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
 

at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) 

at hudson.model.Run.execute(Run.java:1745) 

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 

at hudson.model.ResourceController.execute(ResourceController.java:89) 

at hudson.model.Executor.run(Executor.java:240) 

Caused by: hudson.plugins.git.GitException 
:
 Command "/usr/bin/git fetch --tags --progress http://.../repo.git 
+refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: error: The requested URL returned error: 407 while accessing 
http://.../repo.git/info/refs

fatal: HTTP request failed

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733)
... 11 more
ERROR: Error fetching remote repo 'origin'Finished 
: FAILURE


In http://jenkinsserver:8080/pluginManager/advanced I have defined the Host, 
Port, Username, and Password. I found this ticket 
https://issues.jenkins-ci.org/browse/JENKINS-24112. It seems this problem has 
been re-introduced. Has anyone else had this issue?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d57b5ed6-fab7-4ac6-9095-a36b69348a6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.