Re: Automating the Choice Parameter on a job

2020-10-15 Thread Jan Monterrubio
I’ve used the extended choice parameter to pull a list of files from a
directory in github and display a set of checkboxes. I’ll remember to grab
you a snippet tomorrow during work!



On Thu, Oct 15, 2020 at 17:01 Kari Cowan  wrote:

> I am working on a Jenkins job to rollback a Docker container to the
> previous version.  This on its own is pretty straight-forward, but what I
> want to do is get my list of available tags from the registry. As opposed
> to going to the registry-page and seeing what's available, then copy/paste
> a value into a form on Jenkins, I'd like to automate that step somehow - by
> grabbing the data from the registry page and displaying the options in a
> choice parameter in Jenkins on the build screen.
>
> For example, call in the registry url by ip, example,
> 10.11.12.199:5000/v2/some-api/tags/list might display some JSON like:
> {"name":"some-api","tags":["qa_api-11","qa_api-12","qa_api-13"]}
>
> What's the best tool for this?  I'm no Groovy expert but would the
> Extensible Choice Parameter plugin coupled with a Groovy script be useful
> here? I'm not really clued up yet if this is possible in Groovy, but am
> open to suggestions.  Does anyone have any tips on that or other methods
> that are better?
>
>
>
> --
> 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/CAE7w4hg_RpwfVYAh7m9FLc1oxCPZQuqwd-eMpj6kFgBdMsJoOA%40mail.gmail.com
> 
> .
>

-- 
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/CADgiF9KZ9pd-knThXn4L9uLr5dzG2YKXip_X_RKEABWw_zarvg%40mail.gmail.com.


Is ansicolor-plugin broken?

2020-10-15 Thread Viacheslav Dubrovskyi

Hi.

After update to Jenkins-2.249.2 + AnsiColor-0.7.3,  AnsiColor stopped 
color output in pipeline step log. I made bug 
https://issues.jenkins-ci.org/browse/JENKINS-63959


Is someone else reproduced?

Thank you!


--
WBR,
Viacheslav Dubrovskyi


--
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/84d2db6f-3563-fca3-dcb6-211b26c46cd1%40gmail.com.


smime.p7s
Description: Криптографическая подпись S/MIME


Re: Choice picker is recently broken?

2020-10-15 Thread Mark Waite
Seems like you're describing
https://issues.jenkins-ci.org/browse/JENKINS-63892 - Missing pipeline input
hover in stage view

Alternatives for now seem to be to switch to a previous version of pipeline
stage view and accept the low contrast background or stay with the current
and open the console log to reach the pause prompt.

On Thu, Oct 15, 2020 at 3:20 PM Giles Orr  wrote:

> When a user starts a deployment on our Jenkins host, they can check a
> checkbox if they want to be able to pick the SVN revision number
> deployed.  If they do, our scripted pipeline uses
> ChoiceParameterDefinition to ingest a list of possible revisions.  The
> deploy pauses, and the user hovers their pointer over the stage box to
> bring up the picker selection tool.  At least, this was all working
> until quite recently.  Now, the stage pauses to wait for the
> selection, but the selection tool doesn't appear - on hover, on click,
> at all.  The deploy works fine without the revision picker, but this
> limits our choices.
>
> As this was working last week, and is not working this week, I'm
> assuming that the upgrades I applied on Friday were the cause.
> Jenkins was upgraded from 2.249.1 to 2.249.2, and I think this is the
> likeliest cause, but several plugins (GitHub Branch Source, Jackson 2
> API, JUnit, Pipeline: REST API, Pipeline: Stage View, Plugin Utilities
> API, and Slack Notifications) were also updated.  Jenkins offers the
> option to downgrade back to 2.249.1.
>
> I'm checking in to ask if this is a known problem, if downgrading is a
> good idea, if I should file a bug report (and if so, where).  Thanks.
>
> [I'm aware that pausing during a stage isn't considered good form, and
> let's not even start on what's wrong with SVN ... you work with what
> you got.]
>
> --
> Giles
> https://www.gilesorr.com/
> giles...@gmail.com
>
> --
> 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/CAEnxSC7Q75LeetEhr_G4dG-w_NSXuyK8o19V8mB5OH9S_fR9EA%40mail.gmail.com
> .
>

-- 
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/CAO49JtFkuj8%2BKG5kzW55ffid-Dgik8Q9Ho%2BsA7ez1EZWDVenaw%40mail.gmail.com.


Automating the Choice Parameter on a job

2020-10-15 Thread Kari Cowan
I am working on a Jenkins job to rollback a Docker container to the
previous version.  This on its own is pretty straight-forward, but what I
want to do is get my list of available tags from the registry. As opposed
to going to the registry-page and seeing what's available, then copy/paste
a value into a form on Jenkins, I'd like to automate that step somehow - by
grabbing the data from the registry page and displaying the options in a
choice parameter in Jenkins on the build screen.

For example, call in the registry url by ip, example,
10.11.12.199:5000/v2/some-api/tags/list might display some JSON like:
{"name":"some-api","tags":["qa_api-11","qa_api-12","qa_api-13"]}

What's the best tool for this?  I'm no Groovy expert but would the
Extensible Choice Parameter plugin coupled with a Groovy script be useful
here? I'm not really clued up yet if this is possible in Groovy, but am
open to suggestions.  Does anyone have any tips on that or other methods
that are better?

-- 
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/CAE7w4hg_RpwfVYAh7m9FLc1oxCPZQuqwd-eMpj6kFgBdMsJoOA%40mail.gmail.com.


Choice picker is recently broken?

2020-10-15 Thread Giles Orr
When a user starts a deployment on our Jenkins host, they can check a
checkbox if they want to be able to pick the SVN revision number
deployed.  If they do, our scripted pipeline uses
ChoiceParameterDefinition to ingest a list of possible revisions.  The
deploy pauses, and the user hovers their pointer over the stage box to
bring up the picker selection tool.  At least, this was all working
until quite recently.  Now, the stage pauses to wait for the
selection, but the selection tool doesn't appear - on hover, on click,
at all.  The deploy works fine without the revision picker, but this
limits our choices.

As this was working last week, and is not working this week, I'm
assuming that the upgrades I applied on Friday were the cause.
Jenkins was upgraded from 2.249.1 to 2.249.2, and I think this is the
likeliest cause, but several plugins (GitHub Branch Source, Jackson 2
API, JUnit, Pipeline: REST API, Pipeline: Stage View, Plugin Utilities
API, and Slack Notifications) were also updated.  Jenkins offers the
option to downgrade back to 2.249.1.

I'm checking in to ask if this is a known problem, if downgrading is a
good idea, if I should file a bug report (and if so, where).  Thanks.

[I'm aware that pausing during a stage isn't considered good form, and
let's not even start on what's wrong with SVN ... you work with what
you got.]

-- 
Giles
https://www.gilesorr.com/
giles...@gmail.com

-- 
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/CAEnxSC7Q75LeetEhr_G4dG-w_NSXuyK8o19V8mB5OH9S_fR9EA%40mail.gmail.com.


Unable to configure ssh keys to read a Gerrit repo from Jenkins

2020-10-15 Thread PAUL MENA
 

I am in the process of trying to migrate Gerrit and Jenkins to a new 
datacenter. I have successfully installed the applications on their new 
hardware, but am having difficulty getting Jenkins to read from a Gerrit 
repository on the same server.

As the Jenkins user already existed on the server, I updated its ssh keys 
using one I generated from my account on my laptop (pablo@mena-xps), using 
the following command:

cat ~/.ssh/id_rsa.pub | ssh -p 29418 pmena@gerrit_host gerrit set-account 
--add-ssh-key - jenkins 

I confirmed that I am able to use this key to interrogate gerrit from my 
laptop: 

pablo@mena-xps=> ssh -p 29418 pmena@gerrit_host gerrit version 
gerrit version 2.10

On the Jenkins server, I added the Private key under "Credentials" and then 
Configured the specific job to use that key to access a specific gerrit 
repo. That returns the following error in the GUI: 

Failed to connect to repository : Command "git -c core.askpass=true 
ls-remote -h ssh://gerrit_host:29418/my_repo HEAD" returned status code 
128: 
stdout: 
stderr: Permission denied (publickey). 
fatal: Could not read from remote repository. Please make sure you have the 
correct access rights and the repository exists. 

How can I go about troubleshooting this issue? Is there something I've 
overlooked in my approach? Thanks in advance.

-- 
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/b437248a-5200-412f-b6cf-945609823f60n%40googlegroups.com.


Re: Jenkins SAML with google

2020-10-15 Thread Ivan Fernandez Calvo
Did you set the proper *Group Attribute* in the configuration? Did you 
check that the groups are loaded in the user? if you go to 
JENKINS_URL/user/USENAME/configure at the end page you can see the groups 
loaded.
in case there is no groups check that you SAMLResponse contains the 
groups 
https://github.com/jenkinsci/saml-plugin/blob/master/doc/TROUBLESHOOTING.md#troubleshooting
 
and check that you select the proper group attribute,
if all those things are correct it works as it is explained at 
https://github.com/jenkinsci/saml-plugin/blob/master/doc/CONFIGURE.md#configuring-groups-security
El jueves, 15 de octubre de 2020 a las 7:02:59 UTC+2, Rishi Gautam escribió:

> Thank you Ivan for responding, but that didn't worked for me as well.
>
> On Wed, Oct 14, 2020 at 10:33 PM Ivan Fernandez Calvo  
> wrote:
>
>> Hi,
>>
>> you have how to do it in the documentation of the plugin 
>> https://github.com/jenkinsci/saml-plugin/blob/master/doc/CONFIGURE.md#configuring-groups-security
>>
>> El miércoles, 14 de octubre de 2020 a las 13:52:07 UTC+2, Rishi Gautam 
>> escribió:
>>
>>> Using role based strategy, is there any way to give default permission 
>>> to all logged in users? 
>>> I used authenticated group but it is not working and always forwarded to 
>>> logout. 
>>>
>>> Also, how to enable permission for groups in google?
>>>
>> -- 
>> 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/83dd4f84-8b73-4412-b3cf-ba2d64cde25fn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/9ef84a96-78b7-488d-ad3a-999aff8c9787n%40googlegroups.com.


Docker Cloud Node Based Security

2020-10-15 Thread Matt Wilson
Hello All,

Is there a way to implement the Node Based Security that regular agents use 
on a docker cloud instance like 
this https://plugins.jenkins.io/docker-plugin/

I can't see anyplace to enable it.  

cheers
Matt

-- 
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/c48e0288-5cfe-47fe-b3d8-31d2a4f737e5n%40googlegroups.com.


[LAST CALL] - Jenkins Governance Board and Officer nominations deadline on Oct 15

2020-10-15 Thread Oleg Nenashev
Dear all,

This is the last call for Jenkins Governance Board and Officer nominations.
As announced in this blogpost
 and previous
mailing list communications, this year we will be electing 2 governance
board members and five officers, namely: Security, Events, Release,
Infrastructure, and Documentation. The roles are essential for Jenkins'
community governance and well-being, and we invite all community members to
submit their nominations.

If you feel that a particular person is well suited to help guide Jenkins
evolution as a board member or an officer, please submit a name and the
reason for your nomination to *jenkinsci-bo...@googlegroups.com
*. Self nominations are also welcome.
More information about Governance Board Member responsibilities can be
found here .
Officer roles are described here
.

Nominations will close on Oct 15 AoE (Oct 16, noon UTC).

Best regards,
Oleg Nenashev

-- 
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/CAPfivLAf2MBLWs8QWWBKw4ChDmYgpf7ByWHZh98J_Ux%2BCNN7aQ%40mail.gmail.com.