Re: Need Login Help

2018-09-06 Thread Mark Waite
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
>>> 
>>> .
>>> 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 

Re: Need Login Help

2018-09-06 Thread Steve Burrus
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
>> 
>> .
>> 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/CAO49JtFS6tZBqAdUvekjs75%3DEsWbPKgCWZPAP8a92iJ6pNLPmA%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 

Re: What is the System requirement for installing jenkins in linux prod Environemnt

2018-09-06 Thread Mark Waite
https://jenkins.io/doc/book/installing/ describes some general guidelines
for a Linux based installation of Jenkins.

Mark Waite

On Wed, Sep 5, 2018 at 5:29 AM Vowner  wrote:

> Hello Experts,
>
> Please help me with the Jenkins system requirement to setup in linux
> production environment.
>
>
> --
> 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/1e71bccd-3ed8-43e5-9f2f-44a71f3821f5%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/CAO49JtFW5x8Jho3ncXDcH-oo-qZLwRwXj9qwoz2xoM9q_iu44A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Start multi-branch indexing from SCM notification

2018-09-06 Thread Daniel Becroft
Hi,

I have a multi-branch pipeline setup to initiate a branch indexing every X
minutes, which works fine. However, I am trying to start that process from
the command line via a post-commit hook.

For a normal job, I can use the /subversion//notifyCommit to tell
Jenkins of a new commit, and it will start any jobs that require it. This
doesn't seem to apply to the multi-branch jobs, though. I can only start a
job by using /jobs//build.

I could have multiple jobs that share a repository, and I would like to
avoid having to manually list each job in the post-commit hook.

The polling also had the advantage of triggering downstream jobs when an
external changed - is this possible with the branch indexing? (ie run
branch indexing, if external changes then run the branch build)?
---
Daniel Becroft

-- 
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/CAJM0iSRaAFLfMDM6EoCFezBWHq26cMRFEfd5pq3hOPQfHm_yeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-06 Thread Mark Waite
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
> 
> .
> 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/CAO49JtFS6tZBqAdUvekjs75%3DEsWbPKgCWZPAP8a92iJ6pNLPmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-06 Thread Steve Burrus
*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.
For more options, visit https://groups.google.com/d/optout.


Can I set job weight in a pipeline script?

2018-09-06 Thread William McLendon
We're doing some experimentation in our environment with pipelines using 
the scripted interface.  Generally, it's doing what we want but we 
typically do jobs that use > 1 core and I haven't found any way to set the 
job weight in the pipeline script, so I thought I'd ask... is there any way 
to set the job weight in a pipeline script?  

Ideally, it'd be nice to set on a per node() {...} basis but I'm not 
terribly picky, being able to schedule N executors on our build slaves for 
the whole job would let us move forward.

Thanks!

-- 
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/aabf1388-11fc-4ce7-b7c2-29021296b2b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need Login Help

2018-09-06 Thread Mark Waite
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.


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

2018-09-06 Thread Ian Price
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/f57a5d06-4add-45f4-9c47-9656e45be5a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Need Login Help

2018-09-06 Thread Steve Burrus
*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.


Re: Problems with ENV variables in jenkins 2.1.41?

2018-09-06 Thread Gorgonz ola
Hi Cuong,

thanks for Your suggestion. I did it with a free style job and used as 
build step a shell. I think, this is the most simple test ;-)

But tumbleweed has pretty new packages and I can't figure out, which one 
causes the trouble, especially since there is only one dependency, that I'm 
aware of: java resp. openjdk

In both oss I'm using the same: openjdk 1.8.0

But wait, maybe it is the webserver ... tumbleweed uses 2.4.34 and leap 
uses 2.4.33. No I don't think, that makes the difference.


Am Donnerstag, 6. September 2018 20:37:54 UTC+2 schrieb Cuong Tran:
>
> I would try to verify this with a FreeStyle job to see if the problem is 
> somewhere else.
>
>

-- 
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/eb845ef0-da88-4ef8-b45f-dcf70f75d820%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with ENV variables in jenkins 2.1.41?

2018-09-06 Thread Cuong Tran
I would try to verify this with a FreeStyle job to see if the problem is 
somewhere else.

On Wednesday, September 5, 2018 at 9:55:21 AM UTC-7, Gorgonz ola wrote:
>
> [UPD]Nope, its not that simple, Returning to version 2.1.40 did not help. 
> Its likely a problem, that results from the newer packages, that are 
> installed with tumbleweed
>
> 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:
>> - I'm able to define ENV variables in the global config
>> - a shell build step in order to echo the variables works fine
>>
>> The resultung konsole output from "echo HTDOCS_DIR $HTDOCS_DIR ..." is:
>>
>> + echo HTDOCS_DIR /srv/www/htdocs/
>> HTDOCS_DIR /srv/www/htdocs/
>> + echo JOOMLA4_DIR joomla4-dev
>> JOOMLA4_DIR joomla4-dev
>>
>>
>> Using jenkins 2.1.41 with opensuse leap thumbleweed:
>> - I'm able to define ENV variables in the global config
>> - a shell build step in order to echo the variables shows empty values
>>
>> The resulting konsole output is:
>>
>> + echo HTDOCS_DIR
>> HTDOCS_DIR
>> + echo JOOMLA4_DIR
>> JOOMLA4_DIR
>>
>>
>>
>>

-- 
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/948cfa7d-6a5a-4c46-9bb0-f0d0cf4da861%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-09-06 Thread Cuong Tran
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/a82c506a-8d1b-4456-99a8-0c7d3e2c242b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Indicate changes since last build

2018-09-06 Thread Wouter Slob
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.


Re: Indicate changes since last build

2018-09-06 Thread Craig Rodrigues
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-users+unsubscr...@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/CAG%3DrPVcXD0xSX0PTZbeBcz3P_uzo3NUM26GKhq9EP-kM8hi2RA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Indicate changes since last build

2018-09-06 Thread Wouter Slob
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-users+unsubscr...@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.


Re: declarative pipeline syntax seems limited, am I missing something?

2018-09-06 Thread Baptiste Mathus
>  authoritatively described as being more flexible

Well, if you did read this somewhere, please provide the link, we should
update and fix this.
I suppose it depends on what people put behind the term "flexible", but in
my mind, no that is not the promise of Declarative.

Declarative is about making Pipelines generally more accessible to
beginners, and much more standard between teams and companies. That goal is
mostly about actually lowering flexibility, but at the same time removing
also a lot of surprises that people discover along the way using Scripted.

For your issue, you can still use Shared libs, and yes you can (and many of
argue, should) extract many things in shell scripts or cli tools that can
be used outside of Jenkins.
Pipeline is an awesome orchestration tool/language, but you really want to
get away from using it like a full blown programming language (which many
people do using Scripted, because they can :). And they can't with
Declarative, which is good overall).

My 2 cents

Le ven. 31 août 2018 à 22:35, Gabe Nydick  a écrit :

> Thanks. From what I've read, it seems like the declarative way of doing
> things is authoritatively described as being more flexible, but things that
> used to be common place, now all have to be shelled out. What's the point
> if you're now "declarative" but everything you do is in scripts?
>
> On Thu, Aug 30, 2018 at 11:29 PM Damien Coraboeuf <
> damien.corabo...@collibra.com> wrote:
>
>> Hi,
>>
>> You can put this in a `script` section, and put what you need in
>> environment variables for the rest of the stages / steps:
>>
>> steps {
>>script {
>>   ...
>>   def shortGitCommit = "${gitCommit[0..10]}" as String
>>   env.SHORT_GIT_COMMIT = shortGitCommit
>>   ...
>>}
>>echo "Short Git Commit = $SHORT_GIT_COMMIT"
>> }
>>
>> On Thu, Aug 30, 2018 at 11:04 PM Gabe Nydick  wrote:
>>
>>> How do I replicate the following functionality? I can't seem to find a
>>> way
>>>
>>>
>>> def myRepo = checkout scm
>>> def gitCommit = myRepo.GIT_COMMIT
>>> def gitBranch = myRepo.GIT_BRANCH
>>> def shortGitCommit = "${gitCommit[0..10]}"
>>> def previousGitCommit = sh(script: "git rev-parse ${gitCommit}~", 
>>> returnStdout: true)
>>> def dockerImage = "$image:${gitCommit}"
>>> def dockerLatest = "$image:latest"
>>> def dockerfile = 'base.Dockerfile'
>>>
>>>
>>> --
>>> 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/CACTWNKBUW6koy37j1ELe1PbBZifd8MMEpyVL%2BwbeeUGV06RKCw%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/CAPD6afO526XNJcgA381%2BAt-Lnks7UB3Jm%2BukdixfPcsXFewKNw%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/CACTWNKB%2B5tUV67pmr6EzHhH3%3DRhsq%2Bkon5X8N6-xAK9FLgMpxQ%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/CANWgJS7yW1W_QPYn7ZMYTvCTMaGgECNN59PdDOpAyrcVs75MFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to list pipeline tools from Global Tool Configuration?

2018-09-06 Thread Mr. Laubrino
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/a607e7cc-6701-4ee8-85e6-647acaf95dd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Blue Ocean link from a legacy build page shows 404 error

2018-09-06 Thread damien . coraboeuf
I've followed instructions 
at https://wiki.jenkins.io/display/JENKINS/Running+Jenkins+behind+Apache 
and in particular, I've set the following options:

  ProxyPass/ http://jenkins:8080/ Keepalive=On retry=1 
timeout=6 nocanon
  ProxyPassReverse / http://jenkins:8080/ Keepalive=On
  ProxyRequests Off
  AllowEncodedSlashes On

Nocanon, ProxyRequests off and AllowEncodedSlashes On

Now, my Blue Ocean URLs are working fine.

Thanks,
Damien

On Thursday, September 6, 2018 at 9:02:49 AM UTC+2, 
damien.c...@collibra.com wrote:
>
> I could not reproduce the issue when running with the same setup locally 
> (we're defining the complete setup as code, so it's easy to reproduce 
> locally). So I fear this has to do with some proxy settings. But on the 
> proxy logs, nothing.
>
> On Thursday, September 6, 2018 at 8:29:13 AM UTC+2, George Cimpoies wrote:
>>
>> Tried to replicate the scenario but couldn't reproduce your issue, in my 
>> case it just opens the appropriate blue ocean section of the pipeline job. 
>> Using  Jenkins ver. 2.130 .
>>
>> On Wed, Sep 5, 2018 at 9:02 PM  wrote:
>>
>>> Hi,
>>>
>>> In version of Jenkins 2.121.3, with Blue Ocean 1.8.2, I have the 
>>> following behaviour:
>>>
>>> * from the Blue Ocean dashboard, I can navigate to a pipeline page
>>> * now using the legacy UI, I navigate to the same pipeline page, and 
>>> then click on the "Open Blue Ocean" link - I get a 404 exception
>>>
>>> The two links seem the same:
>>>
>>> * 
>>> https://jenkins/blue/organizations/jenkins/CPROD%2Fproject/detail/master/29/pipeline
>>>  
>>> --> OK
>>> * 
>>> https://jenkins/blue/organizations/jenkins/CPROD%2Fproject/detail/master/29 
>>> --> 404
>>>
>>> So the second URL misses "/pipeline" at the end. Fine. If I add it, it 
>>> fails the same way, with 404.
>>>
>>> Even weirder, if I refresh the first page (the one I got to from the 
>>> Blue Ocean dashboard), I get also a 404 error.
>>>
>>> I do not have any stack trace in the server logs.
>>>
>>> I did not see any existing error about this.
>>>
>>> Any help would be welcome.
>>>
>>> Thanks,
>>> Damien
>>>
>>> -- 
>>> 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/eb6ce27d-f643-4f64-88e9-ebb5a06f7350%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> George Cimpoies
>> R • Itiviti
>> Software Engineer
>>
>> Mobile: +40 751 048 489
>> george@ullink.com
>>
>> 1 Victor Deleu Street | Cluj-Napoca, Cluj 400112
>>
>>
>> Visit: itiviti.com  / ullink.com 
>>  »
>> Read the latest news from Itiviti » 
>>
>> *The information contained in or attached to this email is strictly 
>> confidential. If you are not the intended recipient, please notify us 
>> immediately by telephone and return the message to us.*
>>
>>
>> *Email communications by definition contain personal information. The 
>> ITIVITI group of companies (of which ULLINK forms part) is subject to 
>> European data protection regulations. ULLINK’s Privacy Policy is available 
>> at www.ullink.com . ULLINK expects the recipient of 
>> this email to be compliant with ULLINK’s Privacy Policy and applicable 
>> regulations. Please advise us immediately at datapro...@ullink.com if you 
>> are not compliant with these.*
>>
>

-- 
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/90af0c36-e189-4cf4-8096-ae95144a1391%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Blue Ocean link from a legacy build page shows 404 error

2018-09-06 Thread damien . coraboeuf
I could not reproduce the issue when running with the same setup locally 
(we're defining the complete setup as code, so it's easy to reproduce 
locally). So I fear this has to do with some proxy settings. But on the 
proxy logs, nothing.

On Thursday, September 6, 2018 at 8:29:13 AM UTC+2, George Cimpoies wrote:
>
> Tried to replicate the scenario but couldn't reproduce your issue, in my 
> case it just opens the appropriate blue ocean section of the pipeline job. 
> Using  Jenkins ver. 2.130 .
>
> On Wed, Sep 5, 2018 at 9:02 PM > 
> wrote:
>
>> Hi,
>>
>> In version of Jenkins 2.121.3, with Blue Ocean 1.8.2, I have the 
>> following behaviour:
>>
>> * from the Blue Ocean dashboard, I can navigate to a pipeline page
>> * now using the legacy UI, I navigate to the same pipeline page, and then 
>> click on the "Open Blue Ocean" link - I get a 404 exception
>>
>> The two links seem the same:
>>
>> * 
>> https://jenkins/blue/organizations/jenkins/CPROD%2Fproject/detail/master/29/pipeline
>>  
>> --> OK
>> * 
>> https://jenkins/blue/organizations/jenkins/CPROD%2Fproject/detail/master/29 
>> --> 404
>>
>> So the second URL misses "/pipeline" at the end. Fine. If I add it, it 
>> fails the same way, with 404.
>>
>> Even weirder, if I refresh the first page (the one I got to from the Blue 
>> Ocean dashboard), I get also a 404 error.
>>
>> I do not have any stack trace in the server logs.
>>
>> I did not see any existing error about this.
>>
>> Any help would be welcome.
>>
>> Thanks,
>> Damien
>>
>> -- 
>> 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/eb6ce27d-f643-4f64-88e9-ebb5a06f7350%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> George Cimpoies
> R • Itiviti
> Software Engineer
>
> Mobile: +40 751 048 489
> george@ullink.com 
>
> 1 Victor Deleu Street | Cluj-Napoca, Cluj 400112
>
>
> Visit: itiviti.com  / ullink.com 
>  »
> Read the latest news from Itiviti » 
>
> *The information contained in or attached to this email is strictly 
> confidential. If you are not the intended recipient, please notify us 
> immediately by telephone and return the message to us.*
>
>
> *Email communications by definition contain personal information. The 
> ITIVITI group of companies (of which ULLINK forms part) is subject to 
> European data protection regulations. ULLINK’s Privacy Policy is available 
> at www.ullink.com . ULLINK expects the recipient of 
> this email to be compliant with ULLINK’s Privacy Policy and applicable 
> regulations. Please advise us immediately at datapro...@ullink.com 
>  if you are not compliant with these.*
>

-- 
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/5eef4075-dd0e-4611-b3df-e1a5ff30d366%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: docker.build on Windows

2018-09-06 Thread Mani Agnihotri
The command is run as nohup and you wont have that OOTB in windows. You can
get it via cygwin though. So you have two quick solutions, either be
sensitive to platform in your build (i.e. use an env param to pass command
in docker build) or make sure linux utilities are available in path



On Thu, Sep 6, 2018 at 11:59 AM Ramana Rapally  wrote:

> Did you got any solution to this issue? any updates on this thread?
>
>
> On Tuesday, May 29, 2018 at 12:18:15 PM UTC-5, Daniel Ellison wrote:
>>
>> Does docker.build only work on Linux versions of Jenkins?  My Jenkins is
>> running on Windows 10.  When my pipeline attempts to build my docker image
>> using docker.build, I'm getting a stack and it appears its trying to
>> execute some command as a Linux command:
>>
>> [Pipeline] // stage[Pipeline] stage[Pipeline] { (Build image)[Pipeline] 
>> sh[C:\Program Files (x86)\Jenkins\workspace\RHEL6Perl10] Running shell 
>> script[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // 
>> node[Pipeline] End of Pipelinejava.io.IOException: CreateProcess error=2, 
>> The system cannot find the file specified
>>  at java.lang.ProcessImpl.create(Native Method)
>>  at java.lang.ProcessImpl.(Unknown Source)
>>  at java.lang.ProcessImpl.start(Unknown Source)
>>  at java.lang.ProcessBuilder.start(Unknown Source)
>>  at hudson.Proc$LocalProc.(Proc.java:249)
>>  at hudson.Proc$LocalProc.(Proc.java:218)
>>  at hudson.Launcher$LocalLauncher.launch(Launcher.java:929)
>>  at hudson.Launcher$ProcStarter.start(Launcher.java:449)
>>  at 
>> org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:186)
>>  at 
>> org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:71)
>>  at 
>> org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:176)
>>  at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:229)
>>  at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:153)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
>>  at 
>> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
>>  at 
>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>>  at 
>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>>  at 
>> com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
>> Caused: java.io.IOException: Cannot run program "nohup" (in directory 
>> "C:\Program Files (x86)\Jenkins\workspace\RHEL6Perl10"): CreateProcess 
>> error=2, The system cannot find the file specified
>>  at java.lang.ProcessBuilder.start(Unknown Source)
>>  at hudson.Proc$LocalProc.(Proc.java:249)
>>  at hudson.Proc$LocalProc.(Proc.java:218)
>>  at hudson.Launcher$LocalLauncher.launch(Launcher.java:929)
>>  at hudson.Launcher$ProcStarter.start(Launcher.java:449)
>>  at 
>> org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:186)
>>  at 
>> org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:71)
>>  at 
>> org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:176)
>>  at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:229)
>>  at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:153)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
>>  at 
>> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
>>  at 
>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>>  at 
>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>>  at 
>> com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
>>  at 
>> org.jenkinsci.plugins.docker.workflow.Docker.build(jar:file:/C:/Program%20Files%20(x86)/Jenkins/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:96)
>>  at 
>> org.jenkinsci.plugins.docker.workflow.Docker.node(jar:file:/C:/Program%20Files%20(x86)/Jenkins/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:66)
>>  at 
>> org.jenkinsci.plugins.docker.workflow.Docker.build(jar:file:/C:/Program%20Files%20(x86)/Jenkins/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:79)
>>  at WorkflowScript.run(WorkflowScript:14)
>>  at ___cps.transform___(Native Method)
>>  at 
>> com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
>>  at 
>> 

Re: Blue Ocean link from a legacy build page shows 404 error

2018-09-06 Thread George Cimpoies
Tried to replicate the scenario but couldn't reproduce your issue, in my
case it just opens the appropriate blue ocean section of the pipeline job.
Using  Jenkins ver. 2.130 .

On Wed, Sep 5, 2018 at 9:02 PM  wrote:

> Hi,
>
> In version of Jenkins 2.121.3, with Blue Ocean 1.8.2, I have the following
> behaviour:
>
> * from the Blue Ocean dashboard, I can navigate to a pipeline page
> * now using the legacy UI, I navigate to the same pipeline page, and then
> click on the "Open Blue Ocean" link - I get a 404 exception
>
> The two links seem the same:
>
> *
> https://jenkins/blue/organizations/jenkins/CPROD%2Fproject/detail/master/29/pipeline
> --> OK
> *
> https://jenkins/blue/organizations/jenkins/CPROD%2Fproject/detail/master/29
> --> 404
>
> So the second URL misses "/pipeline" at the end. Fine. If I add it, it
> fails the same way, with 404.
>
> Even weirder, if I refresh the first page (the one I got to from the Blue
> Ocean dashboard), I get also a 404 error.
>
> I do not have any stack trace in the server logs.
>
> I did not see any existing error about this.
>
> Any help would be welcome.
>
> Thanks,
> Damien
>
> --
> 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/eb6ce27d-f643-4f64-88e9-ebb5a06f7350%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
George Cimpoies
R • Itiviti
Software Engineer

Mobile: +40 751 048 489
george.cimpo...@ullink.com

1 Victor Deleu Street | Cluj-Napoca, Cluj 400112

-- 



Visit: itiviti.com  / ullink.com 
 »
Read the latest news from Itiviti » 





*The information contained in or 
attached to this email is strictly confidential. If you are not the 
intended recipient, please notify us immediately by telephone and return 
the message to us.*

*
*

*Email communications by definition contain 
personal information. The ITIVITI group of companies (of which ULLINK forms 
part) is subject to European data protection regulations. ULLINK’s Privacy 
Policy is available at www.ullink.com . ULLINK 
expects the recipient of this email to be compliant with ULLINK’s Privacy 
Policy and applicable regulations. Please advise us immediately at 
dataprotect...@ullink.com  if you are not 
compliant with these.*

-- 
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/CABE7CDdNxyN40zpkTpfaO9iTpZ%3Dq1w95GSTWm3_2m2qUMjw2XQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: docker.build on Windows

2018-09-06 Thread Ramana Rapally
Did you got any solution to this issue? any updates on this thread?


On Tuesday, May 29, 2018 at 12:18:15 PM UTC-5, Daniel Ellison wrote:
>
> Does docker.build only work on Linux versions of Jenkins?  My Jenkins is 
> running on Windows 10.  When my pipeline attempts to build my docker image 
> using docker.build, I'm getting a stack and it appears its trying to 
> execute some command as a Linux command:
>
> [Pipeline] // stage[Pipeline] stage[Pipeline] { (Build image)[Pipeline] 
> sh[C:\Program Files (x86)\Jenkins\workspace\RHEL6Perl10] Running shell 
> script[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] 
> End of Pipelinejava.io.IOException: CreateProcess error=2, The system cannot 
> find the file specified
>   at java.lang.ProcessImpl.create(Native Method)
>   at java.lang.ProcessImpl.(Unknown Source)
>   at java.lang.ProcessImpl.start(Unknown Source)
>   at java.lang.ProcessBuilder.start(Unknown Source)
>   at hudson.Proc$LocalProc.(Proc.java:249)
>   at hudson.Proc$LocalProc.(Proc.java:218)
>   at hudson.Launcher$LocalLauncher.launch(Launcher.java:929)
>   at hudson.Launcher$ProcStarter.start(Launcher.java:449)
>   at 
> org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:186)
>   at 
> org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:71)
>   at 
> org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:176)
>   at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:229)
>   at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:153)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
>   at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>   at 
> com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
> Caused: java.io.IOException: Cannot run program "nohup" (in directory 
> "C:\Program Files (x86)\Jenkins\workspace\RHEL6Perl10"): CreateProcess 
> error=2, The system cannot find the file specified
>   at java.lang.ProcessBuilder.start(Unknown Source)
>   at hudson.Proc$LocalProc.(Proc.java:249)
>   at hudson.Proc$LocalProc.(Proc.java:218)
>   at hudson.Launcher$LocalLauncher.launch(Launcher.java:929)
>   at hudson.Launcher$ProcStarter.start(Launcher.java:449)
>   at 
> org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:186)
>   at 
> org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:71)
>   at 
> org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:176)
>   at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:229)
>   at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:153)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
>   at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>   at 
> com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
>   at 
> org.jenkinsci.plugins.docker.workflow.Docker.build(jar:file:/C:/Program%20Files%20(x86)/Jenkins/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:96)
>   at 
> org.jenkinsci.plugins.docker.workflow.Docker.node(jar:file:/C:/Program%20Files%20(x86)/Jenkins/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:66)
>   at 
> org.jenkinsci.plugins.docker.workflow.Docker.build(jar:file:/C:/Program%20Files%20(x86)/Jenkins/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:79)
>   at WorkflowScript.run(WorkflowScript:14)
>   at ___cps.transform___(Native Method)
>   at 
> com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
>   at 
> com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
>   at 
> com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
>   at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>   at java.lang.reflect.Method.invoke(Unknown Source)
>   at 
>