Re: Indicate changes since last build

2018-09-07 Thread Craig Rodrigues
I don't have a good answer for you.  What I would do is:

(1)  Iterate over currentBuild.changeSets
(2)  let prevBuild = currentBuild.previousBuild
(3) iterate over the changesets
(4)  keep going back  to the previousBuild, depending on if
currentBuild.resultIsWorseOrEqualTo("UNSTABLE")
(5) gather all the changesets you need, and generate an HTML report:
https://www.cloudbees.com/blog/publishing-html-reports-pipeline

If you can find a plugin to do what you want, that would be great, but I
can't think of any offhand.
--
Craig

On Thu, Sep 6, 2018 at 10:14 AM Wouter Slob  wrote:

> Hi Craig,
>
> thanks for your reply!
>
> It is indeed possible to retrieve changes since the last build by
> iterating currentBuild.changeSets.
>
> But I'm actually looking for a way to visualize any / the changes since
> the last build in a Job View.
>
> I would like to indicate in the job that new changes are available that
> have not been build yet, as a way to visualize that a new build is needed.
>
> Any ideas on that?
>
> Regards,
> Wouter
>
>
> On Thursday, September 6, 2018 at 5:14:55 PM UTC+2, Craig Rodrigues wrote:
>>
>> If you look at the currentBuild variable (
>> https://ci.jenkins.io/pipeline-syntax/globals#currentBuild ), it has
>> a few things you can use:
>> - previousBuild
>> - changeSets
>>
>> You can try playing around with those, and see if you can get the
>> changesets for the current build,
>> and the previous build.
>>
>> currentBuild is of type RunWrapper, and you can see the full
>> documentation for those methods here:
>>
>>
>> https://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html
>>
>> If you get something to work, please post a code snippet.
>> --
>> Craig
>>
>> On Thu, Sep 6, 2018 at 6:43 AM Wouter Slob  wrote:
>>
>>> Hi,
>>>
>>> I've got several pipeline and for each pipeline I would like to indicate
>>> in the view if the last not failed build was on the latest changes.
>>> In other words: I would like to indicate per pipeline if there are
>>> changes not yet build.
>>>
>>> I've did a lot of searching, but could only find references to the
>>> "Changes Since Last Success Plugin", which does not support pipeline (and
>>> is quite out-dated).
>>>
>>> Does anybody know of an alternative?
>>>
>>> Thnx!
>>> Wouter
>>>
>>> --
>>> 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/eec2945c-025c-488a-8d29-22a4862dbd96%40googlegroups.com
>>> 
>>> .
>>> For more options, visit 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/2013eec1-e95f-4447-9085-f2190809ffd7%40googlegroups.com
> 
> .
> For more options, visit 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/CAG%3DrPVdykB2pZWb5-Yw7L0_j6PHvCLaPpC%3Dqonx4So8Z5PcsLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-07 Thread Slide
Ok, it looks like in current versions of Jenkins, you need to do a few more
steps than just change useSecurity to false. Please take a look at this
link (
https://jenkins.io/doc/book/system-administration/security/#disabling-security)
and follow the steps there. I recommend stopping the Jenkins service,
editing the file and then starting it back up.

On Fri, Sep 7, 2018 at 9:41 AM Steve Burrus  wrote:

> Okay "Slide" I have attached the Jenkins login area and below you will see
> this config.xml file :
>
> 
> 
>   
>   2.121.3
>   NEW
>   2
>   NORMAL
>  * false*
>class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
> true
>   
>   
> true
> false
>   
>   false
>class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
>   ${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}
>   ${ITEM_ROOTDIR}/builds
>   
>   
>   
>   
>   0
>   
> 
>   
>   all
>   false
>   false
>   
> 
>   
>   all
>   -1
>   
> JNLP-connect
> JNLP2-connect
>   
>   
>   
> false
>   
>   
>   
> 
>
> On Fri, Sep 7, 2018 at 11:09 AM Slide  wrote:
>
>> Can you send a screenshot of the login area that you are seeing as well
>> as attaching the config.xml file you found (after replacing any company or
>> personal information) that you made the change to?
>>
>> On Fri, Sep 7, 2018 at 9:06 AM Steve Burrus  wrote:
>>
>>>
>>>
>>> *NOPE it  still didn't work. Even after re-starting the Jenkins service
>>> I STILL get the login area. I would appreciate your continuing help with
>>> this persistent problem. *
>>>
>>> *On Fri, Sep 7, 2018 at 10:55 AM Slide >> > wrote:*
>>>
 *You need to restart the Jenkins service.*


 --
>>> 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/CABinwmXH61Nv0KE3zUM5ConVj9Km%2Bi2Vfw_vPMuG9Ss-BNpe%3Dw%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit 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/CAPiUgVdjKc9aT0DNTCPi_v-aXMvr5Q69W%3D9Y6C%3DAuCcCNRi08A%40mail.gmail.com
>> 
>> .
>
>
>> For more options, visit 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/CABinwmUFY_AeLgXZCo4L%3D_B9dNY_d4-1bCBJ1wxMSw-2zf4JiQ%40mail.gmail.com
> 
> .
> For more options, visit 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/CAPiUgVdU7uTYipq_%3Dkf8bc0%3DfJ11y36SQ_w%2BxTVUDLDh0D%3D2aA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-07 Thread Steve Burrus
*Boy Slide this problem is hanging on like a "tenacious bulldog". I did
EVERYTHING you recommended that I do but I STILL got the login area. Do you
feel like helping me some more?*



*On Fri, Sep 7, 2018 at 11:50 AM Slide > wrote:*

> *Ok, it looks like in current versions of Jenkins, you need to do a few
> more steps than just change useSecurity to false. Please take a look at
> this link
> (https://jenkins.io/doc/book/system-administration/security/#disabling-security
> )
> and follow the steps there. I recommend stopping the Jenkins service,
> editing the file and then starting it back up.*
>
>
> *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/CABinwmVxoeV3NT-xkc8rWxJ%2BmPR8ep8jCDwzLdP9QJiwZ2yFUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-07 Thread Slide
Can you send a screenshot of the login area that you are seeing as well as
attaching the config.xml file you found (after replacing any company or
personal information) that you made the change to?

On Fri, Sep 7, 2018 at 9:06 AM Steve Burrus  wrote:

>
>
> *NOPE it  still didn't work. Even after re-starting the Jenkins service I
> STILL get the login area. I would appreciate your continuing help with this
> persistent problem. *
>
> *On Fri, Sep 7, 2018 at 10:55 AM Slide  > wrote:*
>
>> *You need to restart the Jenkins service.*
>>
>>
>> --
> 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/CABinwmXH61Nv0KE3zUM5ConVj9Km%2Bi2Vfw_vPMuG9Ss-BNpe%3Dw%40mail.gmail.com
> 
> .
> For more options, visit 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/CAPiUgVdjKc9aT0DNTCPi_v-aXMvr5Q69W%3D9Y6C%3DAuCcCNRi08A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-07 Thread Steve Burrus
Sure. Is there anytjhing else I should take out of it?



  
  2.121.3
  NEW
  2
  NORMAL
  false
true
  
false
  
  ${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}
  ${ITEM_ROOTDIR}/builds
  
  
  
  
  0
  

  
  all
  false
  false
  

  
  all
  -1
  
JNLP-connect
JNLP2-connect
  
  
  
false
  
  
  


On Fri, Sep 7, 2018 at 12:32 PM Slide  wrote:

> Can you resend your new config.xml?
>
> On Fri, Sep 7, 2018, 10:05 Steve Burrus  wrote:
>
>> *Boy Slide this problem is hanging on like a "tenacious bulldog". I did
>> EVERYTHING you recommended that I do but I STILL got the login area. Do you
>> feel like helping me some more?*
>>
>>
>>
>> *On Fri, Sep 7, 2018 at 11:50 AM Slide > > wrote:*
>>
>>> *Ok, it looks like in current versions of Jenkins, you need to do a few
>>> more steps than just change useSecurity to false. Please take a look at
>>> this link
>>> (https://jenkins.io/doc/book/system-administration/security/#disabling-security
>>> )
>>> and follow the steps there. I recommend stopping the Jenkins service,
>>> editing the file and then starting it back up.*
>>>
>>>
>>> *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/CABinwmVxoeV3NT-xkc8rWxJ%2BmPR8ep8jCDwzLdP9QJiwZ2yFUg%40mail.gmail.com
>> 
>> .
>> For more options, visit 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/CAPiUgVeGtLZKuZsJ7JAKPux%3DK3bKPOAhuf7Szx8fTwiLHVdfqA%40mail.gmail.com
> 
> .
> For more options, visit 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/CABinwmWF%3D5mCxGB981SK04E7DMMNppyrQ2eoeTKosddj3D4Eyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-07 Thread Steve Burrus
Okay "Slide" I have attached the Jenkins login area and below you will see
this config.xml file :



  
  2.121.3
  NEW
  2
  NORMAL
 * false*
  
true
  
  
true
false
  
  false
  
  ${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}
  ${ITEM_ROOTDIR}/builds
  
  
  
  
  0
  

  
  all
  false
  false
  

  
  all
  -1
  
JNLP-connect
JNLP2-connect
  
  
  
false
  
  
  


On Fri, Sep 7, 2018 at 11:09 AM Slide  wrote:

> Can you send a screenshot of the login area that you are seeing as well as
> attaching the config.xml file you found (after replacing any company or
> personal information) that you made the change to?
>
> On Fri, Sep 7, 2018 at 9:06 AM Steve Burrus  wrote:
>
>>
>>
>> *NOPE it  still didn't work. Even after re-starting the Jenkins service I
>> STILL get the login area. I would appreciate your continuing help with this
>> persistent problem. *
>>
>> *On Fri, Sep 7, 2018 at 10:55 AM Slide > > wrote:*
>>
>>> *You need to restart the Jenkins service.*
>>>
>>>
>>> --
>> 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/CABinwmXH61Nv0KE3zUM5ConVj9Km%2Bi2Vfw_vPMuG9Ss-BNpe%3Dw%40mail.gmail.com
>> 
>> .
>> For more options, visit 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/CAPiUgVdjKc9aT0DNTCPi_v-aXMvr5Q69W%3D9Y6C%3DAuCcCNRi08A%40mail.gmail.com
> 
> .
> For more options, visit 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/CABinwmUFY_AeLgXZCo4L%3D_B9dNY_d4-1bCBJ1wxMSw-2zf4JiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Title: Jenkins





Skip to content log in JenkinsUser:Password:Remember me on this computerlog inPage generated: Sep 7, 2018 11:01:20 AM CDTREST APIJenkins ver. 2.121.3

Re: Need Login Help

2018-09-07 Thread Mark Waite
Your search tool may be refusing to index the location where the file is
stored.  Try a different search technique.

Try the following from an Administrator Windows Command Prompt:

C:\> FINDSTR /L useSecurity "%ProgramFiles(x86)%"

If that doesn't work, you could try installing some other program that will
search for strings or file names on your disc.

If you have multiple drives (C:, D:, etc.), you might check to see if
Jenkins was installed on one of the other drives.

The
https://www.howtogeek.com/99406/how-to-search-for-text-inside-of-any-file-using-windows-search/
page
suggests that Windows search might be choosing to not index the
xml configuration files.  If so, then it gives hints that may help you
change that setting.

Mark Waite

On Fri, Sep 7, 2018 at 9:16 AM Steve Burrus  wrote:

> *Mark I absolutely CANNOT FIND the config.xml file after looking all over
> for it. Any solutions?*
>
>
> On Thu, Sep 6, 2018 at 9:55 PM Mark Waite 
> wrote:
>
>> The file jenkins.exe.config controls the way Windows executes the program
>> "jenkins.exe".  It does not store the global Jenkins configuration.
>>
>> The global Jenkins configuration (including the  setting) is
>> stored in a file named "config.xml".  The file that needs to be modified is
>> not named "jenkins.exe.config", it is named "config.xml".
>>
>> If you search your file system (Windows search, or with a find command)
>> for a file which contains the text "true" and is
>> named "config.xml", that is the file.  A file of any other name won't do.
>> Adding the text to any other file won't do.
>>
>> All the best!
>> Mark Waite
>>
>>
>> On Thu, Sep 6, 2018 at 7:59 PM Steve Burrus  wrote:
>>
>>> Mark here is what I have in my "C:\MyJenkins\jenkins.exe.config"
>>> file.Here is what I have inside the file :
>>> 
>>>   
>>> 
>>>   
>>>   
>>> 
>>> 
>>>   
>>> 
>>> Now should I put that  line in THIS file, and
>>> if so where?
>>>
>>>
>>> On Thu, Sep 6, 2018 at 8:09 PM Mark Waite 
>>> wrote:
>>>
 It depends on how you are running Jenkins.

 If you are running Jenkins from a command line using the war file, like:

 C:\Users\Mark\my-jenkins> java -jar jenkins.war

 then the Jenkins HOME directory is placed in the ".jenkins"
 subdirectory of your home directory.  In my case, that means I have:

 C:\Users\Mark\.jenkins\config.xml

 that contains the line 'true'

 If you are running Jenkins as configured with the MSI installer, then
 the file is:

 C:\Program Files (x86)\Jenkins\config.xml

 If you've modified your installation by setting a value for
 JENKINS_HOME before starting Jenkins, then that is where it was placed.

 If none of those match your installation, please describe in more
 detail how you have installed Jenkins on your Windows 10 machine.

 Mark Waite

 On Thu, Sep 6, 2018 at 5:03 PM Steve Burrus 
 wrote:

> *I'm sorry but I can't find that config.xml file in my Windows 10
> enterprise system. How exactly can I get to it?  I have ON the setting
> "Show Hidden Files and Folders".  *
>
>
>
> *On Thu, Sep 6, 2018 at 4:55 PM Mark Waite  > wrote:*
>
>>
>> *https://stackoverflow.com/questions/6988849/how-to-reset-jenkins-security-settings-from-the-command-line
>> 
>>  *
>>
>>
>> *On Thu, Sep 6, 2018 at 1:04 PM Steve Burrus > > wrote:*
>>
>>> *I keep on disinstalling/reinstaling Jenkins because of my
>>> forgetting wh at my login information is. I have read  that my password 
>>> is
>>> stored in a "secrets" file but I haven't been able to access it yet. Can
>>> someone help me with this?*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> * -- 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/CABinwmWNORhXwDUEg1oE87-Bog4ZA6aCzfG3uzj3QjMJZKmSdw%40mail.gmail.com
>>> .
>>> For more options, visit 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 

Re: Need Login Help

2018-09-07 Thread Slide
Can you resend your new config.xml?

On Fri, Sep 7, 2018, 10:05 Steve Burrus  wrote:

> *Boy Slide this problem is hanging on like a "tenacious bulldog". I did
> EVERYTHING you recommended that I do but I STILL got the login area. Do you
> feel like helping me some more?*
>
>
>
> *On Fri, Sep 7, 2018 at 11:50 AM Slide  > wrote:*
>
>> *Ok, it looks like in current versions of Jenkins, you need to do a few
>> more steps than just change useSecurity to false. Please take a look at
>> this link
>> (https://jenkins.io/doc/book/system-administration/security/#disabling-security
>> )
>> and follow the steps there. I recommend stopping the Jenkins service,
>> editing the file and then starting it back up.*
>>
>>
>> *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/CABinwmVxoeV3NT-xkc8rWxJ%2BmPR8ep8jCDwzLdP9QJiwZ2yFUg%40mail.gmail.com
> 
> .
> For more options, visit 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/CAPiUgVeGtLZKuZsJ7JAKPux%3DK3bKPOAhuf7Szx8fTwiLHVdfqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-07 Thread Slide
I think you need , not 
(the slash should be at the end).

On Fri, Sep 7, 2018 at 10:37 AM Steve Burrus  wrote:

> Sure. Is there anytjhing else I should take out of it?
>
> 
> 
>   
>   2.121.3
>   NEW
>   2
>   NORMAL
>   false
> true
>   
>
> false
>class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
>   ${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}
>   ${ITEM_ROOTDIR}/builds
>   
>   
>   
>   
>   0
>   
> 
>   
>   all
>   false
>   false
>   
> 
>   
>   all
>   -1
>   
> JNLP-connect
> JNLP2-connect
>   
>   
>   
> false
>   
>   
>   
> 
> On Fri, Sep 7, 2018 at 12:32 PM Slide  wrote:
>
>> Can you resend your new config.xml?
>>
>> On Fri, Sep 7, 2018, 10:05 Steve Burrus  wrote:
>>
>>> *Boy Slide this problem is hanging on like a "tenacious bulldog". I did
>>> EVERYTHING you recommended that I do but I STILL got the login area. Do you
>>> feel like helping me some more?*
>>>
>>>
>>>
>>> *On Fri, Sep 7, 2018 at 11:50 AM Slide >> > wrote:*
>>>
 *Ok, it looks like in current versions of Jenkins, you need to do a few
 more steps than just change useSecurity to false. Please take a look at
 this link
 (https://jenkins.io/doc/book/system-administration/security/#disabling-security
 )
 and follow the steps there. I recommend stopping the Jenkins service,
 editing the file and then starting it back up.*


 *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/CABinwmVxoeV3NT-xkc8rWxJ%2BmPR8ep8jCDwzLdP9QJiwZ2yFUg%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit 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/CAPiUgVeGtLZKuZsJ7JAKPux%3DK3bKPOAhuf7Szx8fTwiLHVdfqA%40mail.gmail.com
>> 
>> .
>
>
>> For more options, visit 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/CABinwmWF%3D5mCxGB981SK04E7DMMNppyrQ2eoeTKosddj3D4Eyg%40mail.gmail.com
> 
> .
> For more options, visit 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/CAPiUgVesPCbKOGf-JX%2B%3DFreM7P29Mt9LHKrzCOojnJBmAge_%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Don't Use GitHub API For GitHub Organization Job

2018-09-07 Thread Jan Monterrubio
I would assume the use of the GitHub API at the org level is to find all
repositories, and then the branches for each repository. That might be the
nature of the GitHub Organization folder.

Maybe it could be enhanced to use api v4 GraphQL which should get us all
the info in one query.

On Tue, Sep 4, 2018 at 20:47  wrote:

> We switched over to checking out our projects with SSH credentials because
> we are constantly butting up against the github API quota.
>
> When a build begins the first thing you see is the job checking in with
> the GitHub API to see the rate limit.  If we are checking out w/ SSH what
> is the purpose of that?
>
> Is there a way to make the builds not use the API at all?
>
> --
> 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/7a6d7ef8-1700-4042-941b-d1ba74fef440%40googlegroups.com
> 
> .
> For more options, visit 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/CADgiF9LCE4YSUbTe3%3DGRNYMauDZukfZHFv2-W7s%3D2EVaJFxNWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to list pipeline tools from Global Tool Configuration?

2018-09-07 Thread Mr. Laubrino
I have tried /directive-generator but it doesn't show tools version. 
Neither for example agents' labels. 

Dne pátek 7. září 2018 15:58:35 UTC+2 Björn Pedersen napsal(a):
>
> Hi, 
>
> did you try the snippet generator (or the declarative directive 
> generator)? They both list available tools and generate the correct syntax.
>
> Björn
>
> Am Freitag, 7. September 2018 11:06:05 UTC+2 schrieb Mr. Laubrino:
>>
>> Yes, but what I found is that you would need Overall/Administer 
>> permission to see that. Is it common that a user who can create a pipeline 
>> job is also an administrator? Isn't it a drawback of Jenkins system? 
>>
>> Dne čtvrtek 6. září 2018 19:29:07 UTC+2 Cuong Tran napsal(a):
>>>
>>> Yes, you must be able to access that area to see a list.
>>>
>>> On Thursday, September 6, 2018 at 5:11:51 AM UTC-7, Mr. Laubrino wrote:

 While going through this pipeline documentation section 
 https://jenkins.io/doc/book/pipeline/syntax/#tools - how can one know 
 possible pre-configured tools if he is not a Jenkins admin? (I suppose 
 only 
 Jenkins admin can manage *Global Tool Configuration)*

>>>

-- 
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/ad4d0884-ae6a-4af9-9b22-7729faa8af99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-07 Thread Steve Burrus
 *Mark I absolutely CANNOT FIND the config.xml file after looking all over
for it. Any solutions?*


On Thu, Sep 6, 2018 at 9:55 PM Mark Waite  wrote:

> The file jenkins.exe.config controls the way Windows executes the program
> "jenkins.exe".  It does not store the global Jenkins configuration.
>
> The global Jenkins configuration (including the  setting) is
> stored in a file named "config.xml".  The file that needs to be modified is
> not named "jenkins.exe.config", it is named "config.xml".
>
> If you search your file system (Windows search, or with a find command)
> for a file which contains the text "true" and is
> named "config.xml", that is the file.  A file of any other name won't do.
> Adding the text to any other file won't do.
>
> All the best!
> Mark Waite
>
>
> On Thu, Sep 6, 2018 at 7:59 PM Steve Burrus  wrote:
>
>> Mark here is what I have in my "C:\MyJenkins\jenkins.exe.config"
>> file.Here is what I have inside the file :
>> 
>>   
>> 
>>   
>>   
>> 
>> 
>>   
>> 
>> Now should I put that  line in THIS file, and
>> if so where?
>>
>>
>> On Thu, Sep 6, 2018 at 8:09 PM Mark Waite 
>> wrote:
>>
>>> It depends on how you are running Jenkins.
>>>
>>> If you are running Jenkins from a command line using the war file, like:
>>>
>>> C:\Users\Mark\my-jenkins> java -jar jenkins.war
>>>
>>> then the Jenkins HOME directory is placed in the ".jenkins" subdirectory
>>> of your home directory.  In my case, that means I have:
>>>
>>> C:\Users\Mark\.jenkins\config.xml
>>>
>>> that contains the line 'true'
>>>
>>> If you are running Jenkins as configured with the MSI installer, then
>>> the file is:
>>>
>>> C:\Program Files (x86)\Jenkins\config.xml
>>>
>>> If you've modified your installation by setting a value for JENKINS_HOME
>>> before starting Jenkins, then that is where it was placed.
>>>
>>> If none of those match your installation, please describe in more detail
>>> how you have installed Jenkins on your Windows 10 machine.
>>>
>>> Mark Waite
>>>
>>> On Thu, Sep 6, 2018 at 5:03 PM Steve Burrus 
>>> wrote:
>>>
 *I'm sorry but I can't find that config.xml file in my Windows 10
 enterprise system. How exactly can I get to it?  I have ON the setting
 "Show Hidden Files and Folders".  *



 *On Thu, Sep 6, 2018 at 4:55 PM Mark Waite >>> > wrote:*

>
> *https://stackoverflow.com/questions/6988849/how-to-reset-jenkins-security-settings-from-the-command-line
> 
>  *
>
>
> *On Thu, Sep 6, 2018 at 1:04 PM Steve Burrus  > wrote:*
>
>> *I keep on disinstalling/reinstaling Jenkins because of my forgetting
>> wh at my login information is. I have read  that my password is stored 
>> in a
>> "secrets" file but I haven't been able to access it yet. Can someone help
>> me with this?*
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> * -- 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/CABinwmWNORhXwDUEg1oE87-Bog4ZA6aCzfG3uzj3QjMJZKmSdw%40mail.gmail.com
>> .
>> For more options, visit 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/CAO49JtE6a0dVkMFMXWKM4O3i_snowSzcT%3D79SnDJ4CxLdVN3ow%40mail.gmail.com
> .*


> * For more options, visit 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/CABinwmU6LigSKmYkjCZKVmT%3Dsh0idB4iweVapX8i53Hk11Q9nw%40mail.gmail.com
 

[ERROR] Failed to execute goal on project bouygues: Could not resolve dependencies for project A:war:1.0.0-SNAPSHOT: Could not find artifact B:jar:1.0.0-SNAPSHOT

2018-09-07 Thread 'Makkaoui Ahmed' via Jenkins Users
Hello

please i need a help evry time i try to use mvn install -Diskeptest or mvn
pmd:pmd pmd:cpd
i get this error
i try a many solutions but dosent work
*Mekkaoui Ahmed*
Tel :  (+216) 27678489

 E-mail : ahmed.makka...@esprit.tn

Réseaux sociaux : https://www.linkedin.com/in/mekkaouiahmed/

-- 
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/CAHMEg1Cv7LDEFbVSnHkCrXnP310vDC-i%2Bscn7rQ3VZ%3DY0R53OA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


jenkins groovy admin script to restart all slaves

2018-09-07 Thread treneva
Hey,

Trying to create a script that restarts all slaves using Jenkins 
Administrative Script console.

Script 1:
import hudson.util.RemotingDiagnostics;

createShellScriptCommand = "echo \"/usr/sbin/shutdown -r now"
grantExecutionPrvilige = "chmod +x /home/nirdevadm/shutdown.sh"
executeShellScriptCommand = "echo \"vm-pass\" | sudo -S 
'/home/nirdevadm/shutdown.sh'"

for (slave in hudson.model.Hudson.instance.slaves) {
println slave.name;
println RemotingDiagnostics.executeGroovy(createShellScriptCommand, 
slave.getChannel());
println RemotingDiagnostics.executeGroovy(grantExecutionPrvilige, 
slave.getChannel());
println RemotingDiagnostics.executeGroovy(executeShellScriptCommand, 
slave.getChannel());
}

Script 1 fails with:

cript1.groovy: 1: unexpected char: 0x @ line 1, column 32.
   echo "/usr/sbin/shutdown -r now
  ^

1 error

at 
org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
at 
org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:150)
at 
org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:120)
groovy.lang.MissingPropertyException: No such property: chmod for class: 
Script1
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)
at 
org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:52)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:307)

groovy.lang.MissingPropertyException: No such property: sudo for class: 
Script1
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)
at 
org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:52)

Script 2:


import hudson.slaves.SlaveComputer
import jenkins.model.Jenkins

createShellScriptCommand = "echo \"/usr/sbin/shutdown -r now"
grantExecutionPrvilige = "chmod +x /home/nirdevadm/shutdown.sh"
executeShellScriptCommand = "echo \"vm-pass\" | sudo -S 
'/home/nirdevadm/shutdown.sh'"

Jenkins.instance.getComputers()
.findAll { it instanceof SlaveComputer }
.each { computer ->
Process p = createShellScriptCommand.execute()
Process z = grantExecutionPrvilige.execute()
Process x = executeShellScriptCommand.execute() 
}
return;

Script 2 seems to compile and does NOT fail but it does nothing as the 
slaves are not restarted.


It all boils down to these 3 unix commands that I want to execute trough 
groovy (they work well in isolation, executed directly on the slave):
echo "/usr/sbin/shutdown -r now" > /home/nirdevadm/shutdown.sh
chmod +x /home/nirdevadm/shutdown.sh
echo "vm-pass" | sudo -S '/home/nirdevadm/shutdown.sh'


Any suggestions what am I doing wrong? 

-- 
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/6fcf0d22-7bca-409a-ba4d-1cb06ca336ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to list pipeline tools from Global Tool Configuration?

2018-09-07 Thread 'Björn Pedersen' via Jenkins Users
Hi, 

did you try the snippet generator (or the declarative directive generator)? 
They both list available tools and generate the correct syntax.

Björn

Am Freitag, 7. September 2018 11:06:05 UTC+2 schrieb Mr. Laubrino:
>
> Yes, but what I found is that you would need Overall/Administer permission 
> to see that. Is it common that a user who can create a pipeline job is also 
> an administrator? Isn't it a drawback of Jenkins system? 
>
> Dne čtvrtek 6. září 2018 19:29:07 UTC+2 Cuong Tran napsal(a):
>>
>> Yes, you must be able to access that area to see a list.
>>
>> On Thursday, September 6, 2018 at 5:11:51 AM UTC-7, Mr. Laubrino wrote:
>>>
>>> While going through this pipeline documentation section 
>>> https://jenkins.io/doc/book/pipeline/syntax/#tools - how can one know 
>>> possible pre-configured tools if he is not a Jenkins admin? (I suppose only 
>>> Jenkins admin can manage *Global Tool Configuration)*
>>>
>>

-- 
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/3489d93a-5d19-4649-8a63-8a9ba6290f23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Remove keys from multilevel map in Jenkins groovy

2018-09-07 Thread viraj
I have multilevel map like :

def someMap = [gen:[type:all], 
 build:[time:6, 
types:[
  TypeA:[type1:[a:true, b:false, c:true, d:true, e:true], 
 type2:[a:true, b:false, c:true, d:true, e:true]], 
  TypeB:[type1:[a:true, b:false, c:true, d:true, e:true]
 type2:[a:true, b:false, c:true, d:true, e:true]], 
  TypeC:[type1:[a:true, b:false, c:true, d:true, e:true],
 type2:[a:true, b:false, c:true, d:true, e:true


 I want to remove the some entries from it, say "TypeA" and "TypeB" from 
map *but with Jenkins groovy script I am not able to do so*, with normal 
groovy, i can delete entries with removeAll() or with iterator, Below 
things already tried.

someMap.build.types.keySet().removeAll(['TypeA', 'TypeB', 
'TypeC'].minus('TypeC')))

def iterator = someMap.build.types.entrySet().iterator()
while (iterator.hasNext()) {
  if (iterator.next().key != 'TypeC' ) {
iterator.remove()
  }
}


but i get the original map with no element removed.



-- 
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/34335973-a068-43db-abef-e3e1d986965f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cluster not found: amazon-ecs-plugin bug or misconfiguration?

2018-09-07 Thread Ian Price
Actually run *$(**aws ecr get-login --no-include-email --region ) *and you won't have to cut and paste the reply


On Thursday, 6 September 2018 20:04:09 UTC+1, Ian Price wrote:
>
> Check that you have logged in to ECR.  From the AWS console go to the* 
> ECS* service and click on *Repositories*. Click on an individual repo and 
> click on *View Push Commands* 
>
> The command you want is *aws ecr get-login --no-include-email --region 
> *
>
> Run the docker command it provides: *docker login -u AWS -p 
> .x*
>
> If you get *Login Succeeded* then the rest should work
>
> On Tuesday, 26 September 2017 13:10:34 UTC+1, Constantin Caraivan wrote:
>>
>> Hello,
>>
>> I'm trying to set up the amazon-ecs-plugin to connect to a ECS cluster. 
>> However, after configuring both the cluster itself and the plugin, both 
>> apparently correctly, I'm getting an error I don't really understand:
>>
>> INFO: Started provisioning ECS Slave docker from aws-ecs with 1 
>> executors. Remaining excess workload: 0
>> Sep 26, 2017 12:32:48 PM hudson.slaves.NodeProvisioner$2 run
>> WARNING: Unexpected exception encountered while provisioning agent ECS 
>> Slave docker
>> com.amazonaws.services.ecs.model.ClusterNotFoundException: Cluster not 
>> found. (Service: AmazonECS; Status Code: 400; Error Code: 
>> ClusterNotFoundException; Request ID: f7bc84e2-a2a5-11e7-801f-1bbc4489a697)
>>
>> The error makes no sense as the plugin does autodetect the cluster and 
>> fills it in the dropdown in the Manage Jenkins interface (so there's no 
>> manual input error possible...).
>>
>> Does anyone have any idea what I should check/debug/investigate?
>>
>> I can provide more info about the setup, just tell me what would help.
>>
>>
>> I was thinking about a workaround of using a "regular" Docker plugin, but 
>> I'm not super confident about it after seeing this:
>>
>>
>> https://github.com/jenkinsci/docker-plugin/issues/235#issuecomment-147975445
>>
>> Is anyone using one of the Docker plugins for agents in production, and 
>> if so, are you happy with it/them? When I say production, I mean something 
>> preferably with tens if not hundreds of jobs configured :)
>>
>>
>> Kind regards,
>> _
>> Costin Caraivan
>>
>

-- 
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/80008e70-e9d2-45c6-a092-723bc9f5df6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to list pipeline tools from Global Tool Configuration?

2018-09-07 Thread Mr. Laubrino
Yes, but what I found is that you would need Overall/Administer permission 
to see that. Is it common that a user who can create a pipeline job is also 
an administrator? Isn't it a drawback of Jenkins system? 

Dne čtvrtek 6. září 2018 19:29:07 UTC+2 Cuong Tran napsal(a):
>
> Yes, you must be able to access that area to see a list.
>
> On Thursday, September 6, 2018 at 5:11:51 AM UTC-7, Mr. Laubrino wrote:
>>
>> While going through this pipeline documentation section 
>> https://jenkins.io/doc/book/pipeline/syntax/#tools - how can one know 
>> possible pre-configured tools if he is not a Jenkins admin? (I suppose only 
>> Jenkins admin can manage *Global Tool Configuration)*
>>
>

-- 
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/8d4f9626-411f-46da-9ace-1c26bf8febe4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with ENV variables in jenkins 2.1.41?

2018-09-07 Thread 'Björn Pedersen' via Jenkins Users
Hi, 

Am Mittwoch, 5. September 2018 12:46:50 UTC+2 schrieb Gorgonz ola:
>
> Again, I'm new to jenkins. So maybe someone should validate, that it is 
> the jenkins version and not a different presumption ;-)
>
> Using jenkins 2.1.40 with opensuse leap 15.0:
>

What are the jenkins versions (as  reportes e.g. in UI), not the package 
version? 
There is no 2.1.40 ( either you are usin g a LTS version, then it be a 
triple-dotted number, the first in the 2-series is 2.7.1, or a weekly  
build, then it is a doublet, current 2.141) 
I guess you  have a 2.140/141 installed,
And of course the installed plugins also are important. Are they up to date?
And what global config are you  referring to? 
Manage jenkins -> global properties -> Environment variables ?
Node config -> Node properties -> Environment variables?
Job variables (EnvInject plugin??) 

Björn 

-- 
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/f7eed9c5-5f84-4347-933e-bc770e2a29f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with ENV variables in jenkins 2.1.41?

2018-09-07 Thread 'Björn Pedersen' via Jenkins Users


> And what global config are you  referring to? 
> Manage jenkins -> global properties -> Environment variables ? 
>
==> works ok on 2.141 here
   

> Node config -> Node properties -> Environment variables?
>

==> A global vars are not overriden  by node vars
==> If defined just as node variable works OK
 

> Job variables (EnvInject plugin??) 
>
> Björn 
>
>

-- 
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/b59fa367-6010-4b43-acaa-c2bfc337b11c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


When does user-agent include signature "aws-sdk-java/1.11.341 Linux/3.10.0-693.5.2.el7.x86_64 OpenJDK_64-Bit_Server_VM/25.151-b12 java/1.8.0_151 groovy/2.4.11"

2018-09-07 Thread Surya
Can someone identify when does a request from Jenkins server have user 
agent set as ""aws-sdk-java/1.11.341 Linux/3.10.0-693.5.2.el7.x86_64 
OpenJDK_64-Bit_Server_VM/25.151-b12 java/1.8.0_151 groovy/2.4.11"? We are 
investigating how our Jenkins server compromised where the hacker seems to 
have got access to the credential store. Any hints when this user agent is 
used is appreciated.

-- 
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/3888fc62-2927-4b33-baa1-528d0613e212%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to use containerTemplates in declarative kubernetes agent definition

2018-09-07 Thread Matt Buckland
Hello list,

I'm running jenkins inside k8s:
jenkins/jenkins:lts
jenkins/jnlp-slave:3.23-1
kubernetes-plugin: 1.12.4

I'm using the following to define my agent:

  agent {
kubernetes {
  label "${JOB_NAME}"
  inheritFrom 'default'
  containerTemplate {
name 'jnlp'
image 
'${ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com/jenkins/jnlp-slave:${AGENT_IMAGE_TAG}'
resourceRequestCpu '200m'
resourceLimitCpu '1'
resourceRequestMemory '256Mi'
resourceLimitMemory '1Gi'
  }



In the logs I have this message:

Sep 07, 2018 5:11:34 PM 
org.csanchez.jenkins.plugins.kubernetes.pipeline.KubernetesDeclarativeAgent 
getAsArgs
WARNING: containerTemplate option in declarative pipeline is deprecated, 
use containerTemplates


I've not been able to find any documentation or examples showing how to use 
this containerTemplates option (note the "s" on the end). I've tried things 
such as:

  containerTemplates [
containerTemplate {
  name 'jnlp'
  image 
'${ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com/jenkins/jnlp-slave:${AGENT_IMAGE_TAG}'
  resourceRequestCpu '200m'
  resourceLimitCpu '1'
  resourceRequestMemory '256Mi'
  resourceLimitMemory '1Gi'
}
  ]


and various other combinations, but I can't get it to work.

Anyone have any suggestions?

Many thanks,

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/c98259fd-1aa4-40a1-890d-cb157cf3bf5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reverse proxy setup is broken

2018-09-07 Thread tcp . siva
Hi ,

I'm getting this error 
reverse proxy setup is broken 


because of which jenkins is unable to update and in Manage plugins section, 
I'm unable to see any plugin and while trying to check for updates, I'm 
getting the below error message.


SEVERE: Error while serving 
http://localhost:8080/jenkins/pluginManager/checkUpdatesServer
java.lang.reflect.InvocationTargetException
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
at 
org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
at 
org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)
at org.kohsuke.stapler.MetaClass$2.doDispatch(MetaClass.java:186)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:734)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:864)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:668)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at 
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at 

Re: JClouds Plugin

2018-09-07 Thread Ali Bazlamit
A friendly nudge, anything on this?

On Wed, Sep 5, 2018 at 3:37 PM, Ali Bazlamit 
wrote:

> Hi Fritz,
>
> Its been a long time since posting my question and i wonder have things
> changed in the jclouds-plugin, again it appears when installing the plugin
> to jenkins i couldn't find the profitbricks-rest plugin i am also
> responsible for oneandone and packet as jclouds plugins.
> Both the profitbricks-rest and oneandone are added to the jclouds shaded
> pom.xml. Is that still the practice or something has changed?
>
> Thanks
>
> On Thursday, March 16, 2017 at 7:09:28 PM UTC+1, Fritz Elfert wrote:
>>
>> On 16.03.2017 16:32, Ali Bazlamit wrote:
>> > Thanks Fritz for answering,
>> >
>> > Just to make sure i understood you good, i need to add the provider
>> > (profitbricks-rest) dependency to the pom.xml ?
>> >
>>
>> Exactly. Well, first you fork the jclouds plugin. But I assume you are
>> familiar with the common fork/change/pullrequest/merge workflow on
>> github.
>>
>>
>> > Thanks again.
>>
>> My pleasure.
>>  -Fritz
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/2LF4kGPs3p8/unsubscribe.
> To unsubscribe from this group and all its topics, 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/32b07952-6183-4d99-8572-c17e3034f7fa%40googlegroups.
> com
> 
> .
>
> For more options, visit 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/CAFnLkS9PphY%2BuPAUtO%2Bu1CcaP_RjAk3UYqzgNU8wpCAG-aa87w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.