Re: pipeline global library no longer works on latest builds on Windows

2016-06-02 Thread tomwilson001 . us
Thanks Craig, that's seem to be the way I'm going to resolve this problem

On Wednesday, June 1, 2016 at 6:17:12 PM UTC-5, Craig Rodrigues wrote:
>
> Hi,
>
> My advice will differ from some of the advice on this list, but I would
> advise you to find a way to accomplish your goal
> without using the pipeline global library mechanism.
> It is really weird, and as you have found, hard to debug when it doesn't 
> work.
>
> My advice is for you to try to find a way to treat your Jenkinsfile as a 
> Groovy script,
> and somehow include your script library in your Jenkinsfile via Groovy 
> language mechanisms.
>
> When Jenkins runs your Jenkinsfile, it dynamically creates a class called 
> Workflowscript,
> and places your entire Jenkinsfile inside a Workflowscript.run() method.  
> I posted some hints
> as to what I figured out when I was debugging my scripts:
>
> https://groups.google.com/forum/#!msg/jenkinsci-users/P7VMQQuMdsY/bHfBDSn9GgAJ
>
> I don't have a solution for you, because I am not a Groovy expert.  But if 
> you figure something
> out, please post your solution to the list.
>
> --
> Craig
>
> On Wed, Jun 1, 2016 at 3:22 PM,  
> wrote:
>
> Currently, I only call one variable/function under the vars directory.  If 
>> the pipeline global library mechanism is so unstable, is there anyway I can 
>> call the function but under a different location without changing the 
>> Jenkinsfile?  After I add the Jenkinsfile to the trunk of my project, it 
>> has been branched to so many other branches owned by many different 
>> developers.  If I start changing Jenkinsfile in their branches, their first 
>> reaction would be to raise the question why I mess with their territory.
>>
>

-- 
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/f79dd330-b0b3-45c8-b742-e762c8d2a851%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline global library no longer works on latest builds on Windows

2016-06-01 Thread Craig Rodrigues
Hi,

My advice will differ from some of the advice on this list, but I would
advise you to find a way to accomplish your goal
without using the pipeline global library mechanism.
It is really weird, and as you have found, hard to debug when it doesn't
work.

My advice is for you to try to find a way to treat your Jenkinsfile as a
Groovy script,
and somehow include your script library in your Jenkinsfile via Groovy
language mechanisms.

When Jenkins runs your Jenkinsfile, it dynamically creates a class called
Workflowscript,
and places your entire Jenkinsfile inside a Workflowscript.run() method.  I
posted some hints
as to what I figured out when I was debugging my scripts:
https://groups.google.com/forum/#!msg/jenkinsci-users/P7VMQQuMdsY/bHfBDSn9GgAJ

I don't have a solution for you, because I am not a Groovy expert.  But if
you figure something
out, please post your solution to the list.

--
Craig

On Wed, Jun 1, 2016 at 3:22 PM,  wrote:

Currently, I only call one variable/function under the vars directory.  If
> the pipeline global library mechanism is so unstable, is there anyway I can
> call the function but under a different location without changing the
> Jenkinsfile?  After I add the Jenkinsfile to the trunk of my project, it
> has been branched to so many other branches owned by many different
> developers.  If I start changing Jenkinsfile in their branches, their first
> reaction would be to raise the question why I mess with their territory.
>

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


Re: pipeline global library no longer works on latest builds on Windows

2016-06-01 Thread tomwilson001 . us
Currently, I only call one variable/function under the vars directory.  If 
the pipeline global library mechanism is so unstable, is there anyway I can 
call the function but under a different location without changing the 
Jenkinsfile?  After I add the Jenkinsfile to the trunk of my project, it 
has been branched to so many other branches owned by many different 
developers.  If I start changing Jenkinsfile in their branches, their first 
reaction would be to raise the question why I mess with their territory.

Thanks

On Wednesday, June 1, 2016 at 1:53:38 AM UTC-5, Baptiste Mathus wrote:
>
> Hi,
> Are you sure it's not just the Git URL? Does really your Jenkins instance 
> run on *your* machine? (127.0.0.1)
> Cheers
> Le 1 juin 2016 5:36 AM,  a écrit :
>
>> Hi,
>>Jenkins pipeline global library no longer works for me on Windows 
>> which unfortunately my employer choose to use.  I simply can't access the 
>> workflowLibs.git through the http URL (
>> http://127.0.0.1:8080/workflowLibs.git/ in my case).  It give me the Not 
>> Found error message even after I already disable the security feature in 
>> order to create the empty git repository first.
>>I had successfully setup pipeline global library before using Jenkins 
>> 1.x but then I was busy with something else until now when suddenly nothing 
>> works.  I forgot which version of Jenkins 1.x I used before so I tried the 
>> LTS version and Jenkins 2.6 and 2.7.
>>Please let me know which option I should follow.  I already tried to 
>> manually create the git repository under workflow-libs but it doesn't 
>> work.  SSH mechanism doesn't work on Windows for the initial repository 
>> either.
>>
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/084c46b1-f3d5-4caa-a335-a46ad290de5e%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/f1632028-8c17-48ca-863b-5386f1858487%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline global library no longer works on latest builds on Windows

2016-06-01 Thread tomwilson001 . us
Hi Baptiste,
   I'm sure it run on my machine because I'm able to do any other tasks 
with Jenkins.  I just prefer to use the loop back address for now so that I 
do not accidentally let anyone log into my machine and run arbitrary code.

Thanks

On Wednesday, June 1, 2016 at 1:53:38 AM UTC-5, Baptiste Mathus wrote:
>
> Hi,
> Are you sure it's not just the Git URL? Does really your Jenkins instance 
> run on *your* machine? (127.0.0.1)
> Cheers
> Le 1 juin 2016 5:36 AM,  a écrit :
>
>> Hi,
>>Jenkins pipeline global library no longer works for me on Windows 
>> which unfortunately my employer choose to use.  I simply can't access the 
>> workflowLibs.git through the http URL (
>> http://127.0.0.1:8080/workflowLibs.git/ in my case).  It give me the Not 
>> Found error message even after I already disable the security feature in 
>> order to create the empty git repository first.
>>I had successfully setup pipeline global library before using Jenkins 
>> 1.x but then I was busy with something else until now when suddenly nothing 
>> works.  I forgot which version of Jenkins 1.x I used before so I tried the 
>> LTS version and Jenkins 2.6 and 2.7.
>>Please let me know which option I should follow.  I already tried to 
>> manually create the git repository under workflow-libs but it doesn't 
>> work.  SSH mechanism doesn't work on Windows for the initial repository 
>> either.
>>
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/084c46b1-f3d5-4caa-a335-a46ad290de5e%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/27358818-e402-4b3d-a5cb-d8d42062aea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline global library no longer works on latest builds on Windows

2016-06-01 Thread Baptiste Mathus
Hi,
Are you sure it's not just the Git URL? Does really your Jenkins instance
run on *your* machine? (127.0.0.1)
Cheers
Le 1 juin 2016 5:36 AM,  a écrit :

> Hi,
>Jenkins pipeline global library no longer works for me on Windows which
> unfortunately my employer choose to use.  I simply can't access the
> workflowLibs.git through the http URL (
> http://127.0.0.1:8080/workflowLibs.git/ in my case).  It give me the Not
> Found error message even after I already disable the security feature in
> order to create the empty git repository first.
>I had successfully setup pipeline global library before using Jenkins
> 1.x but then I was busy with something else until now when suddenly nothing
> works.  I forgot which version of Jenkins 1.x I used before so I tried the
> LTS version and Jenkins 2.6 and 2.7.
>Please let me know which option I should follow.  I already tried to
> manually create the git repository under workflow-libs but it doesn't
> work.  SSH mechanism doesn't work on Windows for the initial repository
> either.
>
> 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/084c46b1-f3d5-4caa-a335-a46ad290de5e%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/CANWgJS71_U5k_n1v9oejLdvWdH%3DmpOs3hfGKt%3DiKOo3D68qNkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.