munged workspace folder names?

2022-09-28 Thread Robert Nicholson
Is this a feature of Jenkins where it appears to munge the job name when 
generating the folder name under workspace?

Does this apply to GitHub organization jobs only?

I show where the folder name under itbox/workspaces on my slave is missing the 
first character of the job name.

and earlier I can see it’s actually preprinted characters to the full job name.

Is this how discard builds works by munging the folder name like this?

This is with jenkins 2.346.2

-- 
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/E81028CF-44E1-4D23-A8FB-9396BEBD838E%40gmail.com.


Problems upgrading from 2.263 to 2346.2

2022-09-13 Thread Robert Nicholson
Currently I see this in the system log

It appears whenever you look at a job from the dashboard and it needs to show 
it’s build history.

Kind of puzzling why this happens for some jobs and not others.

The jobs appear under a Folder.

java.lang.NoSuchMethodError: com.google 
.common.util.concurrent.MoreExecutors.sameThreadExecutor()com/google/common/util/concurrent/ListeningExecutorService

this all is in a stack where it looks like it’s calling getLastBuild on 
LazyBuildMixIn

deeper down it’s doing 
AbstractFolder.getBuildHealthReports(AbstractFolder.java:925)

It’s using idk 1.8.0_121 on the controller

It’s noticeable that

Some jobs are able to show their build history

Some jobs cannot and error with 

“A problem occurred while processing the request”

I’m using Folders plugin 6.4

Primary reason to upgrade it so that we get start using GitHubApps for Git 
authentication.



-- 
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/7F037D44-B4C6-4D91-AB44-3C0299EDBE7F%40gmail.com.


Re: Tagging code in a pipeline?

2019-03-22 Thread Robert Nicholson
I haven’t tried any ssh: url based approach yet.

but the approaches I’ve seen are when you use GIT_SSH etc to inject your own 
private key into the ssh that was
extracted using withCredentials and written to a tmp folder on disk temporarily 
but I see no indication that it’s
ever using this key.

> On Mar 22, 2019, at 12:13 PM, Ivan Fernandez Calvo  
> wrote:
> 
> for the https case, there is an example at 
> https://jenkins.io/doc/pipeline/examples/#push-git-repo 
> <https://jenkins.io/doc/pipeline/examples/#push-git-repo>
> 
> El viernes, 22 de marzo de 2019, 15:00:47 (UTC+1), Robert Nicholson escribió:
> Ok it’s a https: url
> 
> So how do you construct the appropriate 
> 
> ssh command then?
> 
> all examples that use withCredentials seems to fail on my side.
> 
> 
> 
>> On Mar 21, 2019, at 1:55 PM, Mark Waite > wrote:
>> 
>> Is the repository URL an ssh URL?  If not, then sshagent won't help.  The 
>> ssh agent does not do http or https
>> 
>> On Thu, Mar 21, 2019 at 12:51 PM Robert Nicholson > 
>> wrote:
>> I am able to tag the code locally but the push with credentials key based 
>> seems to be an issue.
>> 
>> sshagent([‘credentialsKey]) {
>>sh “git push origin master —tags”
>> }
>> 
>> this step errors with
>> 
>> fatal: could not read Username for ‘repository hostname’ : No such device or 
>> address
>> 
>> Prior in my pipeline I have a repository defined using 
>> 
>> Pipeline script from SCM where the url is defined with https://……..git 
>> <https://��..git>
>> 
>> What is the recommended approach to push when using primary/public key with 
>> git from JenkinsFile pipeline?
>> 
>> -- 
>> 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-use...@googlegroups.com <>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/D357517D-5BB0-4A3B-9409-F025C01D470B%40gmail.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/D357517D-5BB0-4A3B-9409-F025C01D470B%40gmail.com>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
>> 
>> 
>> -- 
>> Thanks!
>> Mark Waite
>> 
>> -- 
>> 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-use...@googlegroups.com <>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGBhRbuWRLrbxuDUZJpORVyikyGff8B5nFCE62c2L9Zjg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGBhRbuWRLrbxuDUZJpORVyikyGff8B5nFCE62c2L9Zjg%40mail.gmail.com?utm_medium=email_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> 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 
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/fdeaee54-5b99-4e05-a1e6-e02b91e9c0b3%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/fdeaee54-5b99-4e05-a1e6-e02b91e9c0b3%40googlegroups.com?utm_medium=email_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/24140516-67D1-4F51-A525-539C447319A2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: GIT_SSH having no effect

2019-03-22 Thread Robert Nicholson
I guess my thinking was that this is when GIT_SSH and GIT_SSH_COMMAND are 
relevant.

Most of the online examples I’m finding seem to use this approach when the url 
is a https: one.

The other issue is it’s hard to trace what git is doing. I turned on GIT_TRACE 
and it seems to show
that it’s only running git and not the command I provided.

In my case the GitHub is a GitHub Enterprise installation.

> On Mar 22, 2019, at 4:53 PM, Mark Waite  wrote:
> 
> If the repository URL is http or https, I suspect that command line git 
> ignores the values of GIT_SSH and GIT_SSH_COMMAND.
> 
> If the repository URL is http or https, why not use the solution provided at 
> https://jenkins.io/doc/pipeline/examples/#push-git-repo 
> <https://jenkins.io/doc/pipeline/examples/#push-git-repo> (as noted by Ivan 
> earlier)?
> 
> If the repository URL is ssh, why not use the sshagent step instead of using 
> withCredentials?
> 
> On Fri, Mar 22, 2019 at 3:17 PM Robert Nicholson  <mailto:robert.nichol...@gmail.com>> wrote:
> When I try to use 
> 
> withCredentials()
> withEnv(‘GIT_SSH=doesnotexist’])
>  sh ‘git push origin —tags’
> 
> For some reason the GIT_SSH seems to have no effect whatever.
> 
> The git push doesn’t complain that way I would have expected
> 
> But if I use
> 
> withEnv(‘PATH=‘])
> sh ‘git push origin —tags’
> 
> That does have the intended affect of complaining about
> Git not being found in the path.
> 
> Does anybody know why GIT_SSH nor GIT_SSH_COMMAND appear
> not work with git 2.16.2 like I’m trying?
> 
> Sent from my iPad
> 
> -- 
> 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 
> <mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/0566D01A-779B-416F-86DF-CDEF500A64D5%40gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/0566D01A-779B-416F-86DF-CDEF500A64D5%40gmail.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> Thanks!
> Mark Waite
> 
> -- 
> 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 
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHws1t_-ibbUS663RkVxcbNnQRT7ZFky0GVHMgMZ%2B_%3DHg%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHws1t_-ibbUS663RkVxcbNnQRT7ZFky0GVHMgMZ%2B_%3DHg%40mail.gmail.com?utm_medium=email_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/4C27DE3E-A4EE-4BEE-95AE-4CA40B28FE7F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


GIT_SSH having no effect

2019-03-22 Thread Robert Nicholson
When I try to use 

withCredentials()
withEnv(‘GIT_SSH=doesnotexist’])
 sh ‘git push origin —tags’

For some reason the GIT_SSH seems to have no effect whatever.

The git push doesn’t complain that way I would have expected

But if I use

withEnv(‘PATH=‘])
sh ‘git push origin —tags’

That does have the intended affect of complaining about
Git not being found in the path.

Does anybody know why GIT_SSH nor GIT_SSH_COMMAND appear
not work with git 2.16.2 like I’m trying?

Sent from my iPad

-- 
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/0566D01A-779B-416F-86DF-CDEF500A64D5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tagging code in a pipeline?

2019-03-22 Thread Robert Nicholson
Ok it’s a https: url

So how do you construct the appropriate 

ssh command then?

all examples that use withCredentials seems to fail on my side.



> On Mar 21, 2019, at 1:55 PM, Mark Waite  wrote:
> 
> Is the repository URL an ssh URL?  If not, then sshagent won't help.  The ssh 
> agent does not do http or https
> 
> On Thu, Mar 21, 2019 at 12:51 PM Robert Nicholson  <mailto:robert.nichol...@gmail.com>> wrote:
> I am able to tag the code locally but the push with credentials key based 
> seems to be an issue.
> 
> sshagent([‘credentialsKey]) {
>sh “git push origin master —tags”
> }
> 
> this step errors with
> 
> fatal: could not read Username for ‘repository hostname’ : No such device or 
> address
> 
> Prior in my pipeline I have a repository defined using 
> 
> Pipeline script from SCM where the url is defined with https://……..git
> 
> What is the recommended approach to push when using primary/public key with 
> git from JenkinsFile pipeline?
> 
> -- 
> 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 
> <mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/D357517D-5BB0-4A3B-9409-F025C01D470B%40gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/D357517D-5BB0-4A3B-9409-F025C01D470B%40gmail.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> Thanks!
> Mark Waite
> 
> -- 
> 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 
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGBhRbuWRLrbxuDUZJpORVyikyGff8B5nFCE62c2L9Zjg%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGBhRbuWRLrbxuDUZJpORVyikyGff8B5nFCE62c2L9Zjg%40mail.gmail.com?utm_medium=email_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/7210C022-28A4-42A1-9F93-06EE882AC357%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Tagging code in a pipeline?

2019-03-21 Thread Robert Nicholson
I am able to tag the code locally but the push with credentials key based seems 
to be an issue.

sshagent([‘credentialsKey]) {
   sh “git push origin master —tags”
}

this step errors with

fatal: could not read Username for ‘repository hostname’ : No such device or 
address

Prior in my pipeline I have a repository defined using 

Pipeline script from SCM where the url is defined with https://……..git

What is the recommended approach to push when using primary/public key with git 
from JenkinsFile pipeline?

-- 
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/D357517D-5BB0-4A3B-9409-F025C01D470B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins meta data plugin not always showing the latest versions?

2018-12-02 Thread Robert Nicholson
I’m using the plugin the plugin that says “List maven artifact versions”

and I’m noticing that often it’s not always up to date in the versions it’s 
offering
and I can see that maven-metadata.xml does include more recent versions.

Even when I can clearly see my maven repository is showing more recent versions.

Is there any know bug or issue related to this plugin?

I can even see the slaves local .m2 directory has more recent versions.

Jenkins is v 2.107.3

-- 
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/244F3C3E-7AA3-4222-A167-39168E13C100%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Active Choices Plugin populated via ssh?

2018-08-28 Thread Robert Nicholson
Can Active Choices Plugin support populating itself using ssh or can it only 
read a flat file?

-- 
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/C7D46A6D-DA4D-455C-B43B-3BA433BE4549%40gmail.com.
For more options, visit https://groups.google.com/d/optout.