How to access the suiteXMLFile value passed from maven command in other plugins?

2018-04-11 Thread Pavan Yanamadala


As part of Jenkins Maven job, I am giving maven command as

maven clean test *-DsuiteXmlFile=src/test/resources/suites/testNG.xml*..


Now my question is, *Is there a way to get suiteXmlFile value passed by us 
inside my Jenkins post build plugin so that I will be able to know the test 
cases that are run?*

-- 
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/f837268c-1591-4380-908d-339b595c1355%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Switch LTS > Weekly

2018-04-11 Thread john.peterson
Since my LTS is stuck looking at only the LTS site, I assume to switch, I 
manually download the weekly I want and simply overwrite the .war?  And 
then it will be smart enough to know it is the weekly?

-- 
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/5e185832-9f32-48ec-a3e5-09e11d7a35e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrade Path for Jenkins/Hudson

2018-04-11 Thread Thomas Dunlap
All:

Thanks for all the tips.  I thought I was successful by reinstalling my old
1.472 version.  Was able to access through the local host and saw all the
jobs, etc.  This was accomplished using the java -DJENKINS_HOME=/Hudson
-jar jenkins-war.1.472.war. Once I gained access I started the process of
getting the old nodes added to the configuration.  Something went wrong and
lost the ability to access through the browser. Tuis is a windows install
on Server 2003.

Then decided to make a new installation using  java -DJENKINS_HOME=/Jenkins
-jar jenkins-war.1.472.war. all went well.  Decided to try the latest
update to become current.  Had to go to the CLI to restart Jenkins but
noted that the Jenkins.exe was not in the folder. Deleted all the files and
did another install. Same issue.

One note is that I have JAVA 1.6 on the server.  After rebooting the system
i tried the install one more time. Now I get the error that Java 8 is
required you have 1.6.
Naturally Java 8 cannot be installed on a Server 2003 SP2 machine.  Think I
have boxed myself in.

What is does tell me is that I CANNOT update to the latest version of
Jenkins because of the version of Java. This is an important fact that
should be known when trying to upgrade old Hudson installations. I will
check to see which version is the highest that I can install.

How do I overcome this Java 8 Error.

Thanks for all the support thus far.





On Mon, Apr 9, 2018 at 10:17 AM, Victor Martinez <
victormartinezru...@gmail.com> wrote:

> Hey Thomas, most likely the hudson folder should be backed up:
> - https://wiki.eclipse.org/Using_Hudson/Administering_Hudson which
> matches with the Jenkins one too: https://wiki.jenkins.io/
> display/JENKINS/Administering+Jenkins
>
> As a suggestion: I'd rather consider to upgrade on batches firstly, moving
> from 1.4 to 1.5, then 1.6 then 2.0,... based on the LTS ones and
> https://jenkins.io/doc/upgrade-guide/ might help you, as Slide also
> suggested
>
> Cheers
>
> On Friday, 6 April 2018 16:04:27 UTC+1, Thomas Dunlap wrote:
>>
>> All:
>>
>> After some digging in the documents and looking at my current
>> installation, I get the feeling the getting back my current v1.472
>> installation, I should be able to rename the config.xml file to
>> config_original.xml then install jenkins-war-1.472.war using
>>
>> java -jar jenkins-war-1.472.war --httpPort=8080
>>
>> in the D:\Hudson folder. Ensuring that no versions of Jenkins are running
>> before execution
>>
>> After the installation I will set up Jenkins as a windows service from
>> the Manage Configuration. This could also be accomplished using the using
>> the SC,exe command
>>
>>
>> Then I should be able to replace the NEW config.xml with the Original.xml
>>
>> Execute the localhost:8080 and be back in business
>>
>> Then cleanup all the other settings.
>>
>> Is this feasible or did I miss something,?
>>
>>
>> On Fri, Apr 6, 2018 at 8:24 AM, Spriggs, Jim  wrote:
>>
>>> Jo! What the man said, in spades.
>>>
>>>
>>>
>>> FWIW: I also use the LTS version.
>>>
>>> Quite frankly, for a piece of software which hasn’t cost me a penny, and
>>> to which I (to my chagrin) yet have to contribute, it’s as near “perfect”
>>> as I’ll ever want.
>>>
>>> I can happily live with the (very rare) hiccoughs: we’re all only human,
>>> after all.
>>>
>>>
>>>
>>> Big thanks to everyone involved for making my life easier!
>>>
>>>
>>>
>>> --
>>>
>>> jim
>>>
>>>
>>>
>>> --
>>>
>>> RAYLASE GmbH
>>> Argelsrieder Feld 2
>>> +4
>>> 82234 Wessling
>>> Germany
>>> Tel.: +49-(0)8153/88 98-0
>>> Fax: +49-(0)8153/88 98-10
>>> http://www.raylase.de
>>>
>>> District Court Munich, HRB 234738
>>>
>>> Management: Dr. Philipp Schön (CEO), Berthold Dambacher (CTO)
>>>
>>>
>>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
>>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>>> Weitergabe dieser Mail ist nicht gestattet.
>>>
>>> This e-mail may contain confidential and/or privileged information. If
>>> you are not the intended recipient (or have received this e-mail in error)
>>> please notify the sender immediately and destroy this e-mail. Any
>>> unauthorized copying, disclosure or distribution of the material in this
>>> e-mail is strictly forbidden.
>>>
>>> --
>>> 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/ms
>>> gid/jenkinsci-users/28cf5b1b6a4644798129f58f0d7a4944%40raylase.de
>>> 

Re: is there an equivalent plugin for GitLab as "github-organization-folder"?

2018-04-11 Thread Mark Waite
I don't know why the author has chosen to not submit that plugin to the
Jenkins update center.  You may want to ask the author.

Mark Waite

On Wed, Apr 11, 2018 at 10:49 AM Qiang  wrote:

> Thanks for the quick response!
>
> My only concern is that the plugin is not officially part of Jenkins
> plugin update site.
> Any thoughts?
>
> Qiang
>
> On Wednesday, April 11, 2018 at 10:58:10 AM UTC-5, Mark Waite wrote:
>>
>> GitHub Branch Source Plugin is the replacement for GitHub Organization
>> Folder .  The
>> GitHub Organization Folder final release ("tombstone release") was 15
>> months ago.  The blog post
>>  says "The functionality
>> of this plugin has been migrated to the GitHub Branch Source plugin."
>>
>> Since Gitlab Branch Source Plugin is modeled after the GitHub Branch
>> Source Plugin, it seems like a good place to start.
>>
>> Mark Waite
>>
>> On Wed, Apr 11, 2018 at 9:51 AM Qiang  wrote:
>>
>>> Hi, All,
>>>
>>> Is there a GitLab plugin does the same thing as "github-organization-folder"
>>> (which creates jobs based on branches, and pull request)?
>>>
>>> I saw this: https://github.com/Argelbargel/gitlab-branch-source-plugin
>>> Anyone has used that before? Does it have similar features?
>>>
>>> Any comment is appreciated.
>>>
>>> Thanks,
>>> Qiang
>>>
>>> --
>>> 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/3d84cecd-ec80-409b-8924-62f28731d168%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/071bcb17-1495-482c-86e2-d8b606e007e8%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/CAO49JtFu_aum6VhU9quLsijMMs3-sueRZcZmabb2dWL1VtHJig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline jobs for PRs failing due to Jenkins NOT using configured account.

2018-04-11 Thread Chris Funderburg
Multi branch pipeline jobs are failing on Pull Request branches only. Console 
output shows Jenkins doing "using GIT_ASKPASS to set credentials ***" (*** = 
configured user name). Using folder level credentials. Other branch jobs run 
fine. PRs fail on the master when trying to git pull the Jenkinsfile. I did a 
git reset on user.name globally on the master. This job works fine on my test 
master. I'm not sure where to look on the production master to fix this. Any 
thoughts? 

-- 
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/d2b77a49-38e7-4ed5-8a07-d8a85b929ca7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there an equivalent plugin for GitLab as "github-organization-folder"?

2018-04-11 Thread Qiang
Thanks for the quick response!

My only concern is that the plugin is not officially part of Jenkins plugin 
update site.
Any thoughts?

Qiang

On Wednesday, April 11, 2018 at 10:58:10 AM UTC-5, Mark Waite wrote:
>
> GitHub Branch Source Plugin is the replacement for GitHub Organization 
> Folder .  The 
> GitHub Organization Folder final release ("tombstone release") was 15 
> months ago.  The blog post  
> says "The functionality of this plugin has been migrated to the GitHub 
> Branch Source plugin."
>
> Since Gitlab Branch Source Plugin is modeled after the GitHub Branch 
> Source Plugin, it seems like a good place to start.
>
> Mark Waite
>
> On Wed, Apr 11, 2018 at 9:51 AM Qiang  
> wrote:
>
>> Hi, All,
>>
>> Is there a GitLab plugin does the same thing as "github-organization-folder" 
>> (which creates jobs based on branches, and pull request)?
>>
>> I saw this: https://github.com/Argelbargel/gitlab-branch-source-plugin
>> Anyone has used that before? Does it have similar features?
>>
>> Any comment is appreciated.  
>>
>> Thanks,
>> Qiang
>>
>> -- 
>> 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/3d84cecd-ec80-409b-8924-62f28731d168%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/071bcb17-1495-482c-86e2-d8b606e007e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there an equivalent plugin for GitLab as "github-organization-folder"?

2018-04-11 Thread Mark Waite
GitHub Branch Source Plugin is the replacement for GitHub Organization
Folder .  The GitHub
Organization Folder final release ("tombstone release") was 15 months ago.
The blog post  says "The
functionality of this plugin has been migrated to the GitHub Branch Source
plugin."

Since Gitlab Branch Source Plugin is modeled after the GitHub Branch Source
Plugin, it seems like a good place to start.

Mark Waite

On Wed, Apr 11, 2018 at 9:51 AM Qiang  wrote:

> Hi, All,
>
> Is there a GitLab plugin does the same thing as "github-organization-folder"
> (which creates jobs based on branches, and pull request)?
>
> I saw this: https://github.com/Argelbargel/gitlab-branch-source-plugin
> Anyone has used that before? Does it have similar features?
>
> Any comment is appreciated.
>
> Thanks,
> Qiang
>
> --
> 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/3d84cecd-ec80-409b-8924-62f28731d168%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/CAO49JtGrMZfc-GWuYEHW6K627L6zdEQaTNifWUO%2BM_TaBj%2BJkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


is there an equivalent plugin for GitLab as "github-organization-folder"?

2018-04-11 Thread Qiang
Hi, All,

Is there a GitLab plugin does the same thing as "github-organization-folder" 
(which creates jobs based on branches, and pull request)?

I saw this: https://github.com/Argelbargel/gitlab-branch-source-plugin
Anyone has used that before? Does it have similar features?

Any comment is appreciated.  

Thanks,
Qiang

-- 
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/3d84cecd-ec80-409b-8924-62f28731d168%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Slave cannot connect to Jenkins via tcpSlaveAgentListener

2018-04-11 Thread Daniel Beck

> On 11. Apr 2018, at 17:36, john.peterson  wrote:
> 
> Is this a change in setup defaults?

Since Jenkins 2.0 in 2016, and its introduction of the setup wizard.

> BTW - this system is only showing "stable" updates for Jenkins.  All others 
> are showing ALL updates (which I actually prefer).  Is there a way to change 
> that?

Manage Jenkins » Manage Plugins » Advanced, compare URLs there. Change as 
desired, submit, and 'Check Now' to flush the cache.

You should generally use https://updates.jenkins.io/update-center.json as 
Jenkins will send its current version, and the update server will forward to 
the most appropriate update information.


-- 
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/83AA9E4C-5C3F-4E7E-A699-D36B1830E70E%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Slave cannot connect to Jenkins via tcpSlaveAgentListener

2018-04-11 Thread john.peterson

Re: Cannot create cloud using vSphere plugin

2018-04-11 Thread john.peterson
After lunch, all of a sudden it then created the missing fields.  Hmmm...  
:-(

Also interesting on this system.  Every other system we have is using a 
simple alias for the http://.  This one system won't work with the 
alias.  However, this system has been problematic every step of the way.  
Luckily, down to one last problem.

On Tuesday, April 10, 2018 at 12:28:59 PM UTC-4, john.peterson wrote:
>
> New install of Jenkins and I have replicated all plugins from our running 
> system.  Tried vSphere plugin 2.16 and 2.17.
>
> Under Configure System I have a section at the bottom that says "Add a new 
> cloud" and if I click the pull-down it says vSphere Cloud.  But when I 
> click that, nothing happens.
>
> This is the 4th system I have created over the last 3-1/2 years and this 
> is the first time I have run into this.
>
> Thoughts?  Am I missing some dependency that isn't being flagged?
>

-- 
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/db5c6bbf-4471-4e90-a527-64f7f172f797%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Slave cannot connect to Jenkins via tcpSlaveAgentListener

2018-04-11 Thread Daniel Beck
Is the TCP agent listener port in the global security config of Jenkins 
disabled on the fourth system?

> On 11. Apr 2018, at 17:12, john.peterson  wrote:
> 
> Legacy systems (3+ years) running 2.111
> 
> http://jenkins_1:8080/tcpSlaveAgentListener takes us to a page that simply 
> says Jenkins.  This system works.
> http://jenkins_2:8080/tcpSlaveAgentListener takes us to a page that simply 
> says Jenkins.  This system works.
> http://jenkins_3:8080/tcpSlaveAgentListener takes us to a page that simply 
> says Jenkins.  This system works.
> 
> New system running 2.107
> http://jenkins_4:8080/tcpSlaveAgentListener says Page Not Found
> 
> This is the first time I've had trouble getting a slave to connect.
> 
> I've checked to make sure all of the plugins are there and the same as on the 
> other systems.
> 
> My VM is a clone from System2.  I updated my "slave launch" batch file from
> 
> javaws http://jenkins_2:8080/computer/VM01_Win7x64/slave-agent.jnlp
> to
> javaws http://jenkins_4:8080/computer/VM01_Win7x64/slave-agent.jnlp
> 
> When I run that command on the slave I get:
> 
> Apr 11, 2018 10:13:33 AM hudson.remoting.jnlp.GuiListener$2 run
> SEVERE: http://jenkins_4:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found
> java.io.IOException: http://jenkins_4:8080/tcpSlaveAgentListener/ is invalid: 
> 404 Not Found
>   at 
> org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:204)
>   at hudson.remoting.Engine.innerRun(Engine.java:518)
>   at hudson.remoting.Engine.run(Engine.java:469)
> 
> I am the one that set up all 4 systems.  Doing side-by-side comparisons, 
> everything seems the same.  I have entered firewall exceptions (or turned 
> off).  I have the same JAVA on all.  I have added exceptions in JAVA as 
> appropriate.
> 
> The only diagnostics I can find is from CloudBees and only semi-applies to 
> what I am trying to diagnose.
> 
> -- 
> 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/7ebbd44b-36a0-4d6f-ba86-3bcc0159ac00%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/6DC1B137-2466-4AB1-9F64-E5A19AAC8EB5%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Slave cannot connect to Jenkins via tcpSlaveAgentListener

2018-04-11 Thread john.peterson
Java 1.8 144 by the way which is in use across the board on all systems.



On Wednesday, April 11, 2018 at 11:12:23 AM UTC-4, john.peterson wrote:
>
> Legacy systems (3+ years) running 2.111
>
> http://jenkins_1:8080/tcpSlaveAgentListener takes us to a page that 
> simply says Jenkins.  This system works.
> http://jenkins_2:8080/tcpSlaveAgentListener takes us to a page that 
> simply says Jenkins.  This system works.
> http://jenkins_3:8080/tcpSlaveAgentListener takes us to a page that 
> simply says Jenkins.  This system works.
>
> New system running 2.107
> http://jenkins_4:8080/tcpSlaveAgentListener says Page Not Found
>
> This is the first time I've had trouble getting a slave to connect.
>
> I've checked to make sure all of the plugins are there and the same as on 
> the other systems.
>
> My VM is a clone from System2.  I updated my "slave launch" batch file from
>
> javaws http://jenkins_2:8080/computer/VM01_Win7x64/slave-agent.jnlp
> to
> javaws http://jenkins_4:8080/computer/VM01_Win7x64/slave-agent.jnlp
>
> When I run that command on the slave I get:
>
> Apr 11, 2018 10:13:33 AM hudson.remoting.jnlp.GuiListener$2 run
> SEVERE: http://jenkins_4:8080/tcpSlaveAgentListener/ is invalid: 404 Not 
> Found
> java.io.IOException: http://jenkins_4:8080/tcpSlaveAgentListener/ is 
> invalid: 404 Not Found
> at 
> org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:204)
> at hudson.remoting.Engine.innerRun(Engine.java:518)
> at hudson.remoting.Engine.run(Engine.java:469)
>
> I am the one that set up all 4 systems.  Doing side-by-side comparisons, 
> everything seems the same.  I have entered firewall exceptions (or turned 
> off).  I have the same JAVA on all.  I have added exceptions in JAVA as 
> appropriate.
>
> The only diagnostics I can find is from CloudBees and only semi-applies to 
> what I am trying to diagnose.
>

-- 
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/0db0e619-4ea4-493d-8f2b-64a23363d19c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Slave cannot connect to Jenkins via tcpSlaveAgentListener

2018-04-11 Thread john.peterson
Legacy systems (3+ years) running 2.111

http://jenkins_1:8080/tcpSlaveAgentListener takes us to a page that simply 
says Jenkins.  This system works.
http://jenkins_2:8080/tcpSlaveAgentListener takes us to a page that simply 
says Jenkins.  This system works.
http://jenkins_3:8080/tcpSlaveAgentListener takes us to a page that simply 
says Jenkins.  This system works.

New system running 2.107
http://jenkins_4:8080/tcpSlaveAgentListener says Page Not Found

This is the first time I've had trouble getting a slave to connect.

I've checked to make sure all of the plugins are there and the same as on 
the other systems.

My VM is a clone from System2.  I updated my "slave launch" batch file from

javaws http://jenkins_2:8080/computer/VM01_Win7x64/slave-agent.jnlp
to
javaws http://jenkins_4:8080/computer/VM01_Win7x64/slave-agent.jnlp

When I run that command on the slave I get:

Apr 11, 2018 10:13:33 AM hudson.remoting.jnlp.GuiListener$2 run
SEVERE: http://jenkins_4:8080/tcpSlaveAgentListener/ is invalid: 404 Not 
Found
java.io.IOException: http://jenkins_4:8080/tcpSlaveAgentListener/ is 
invalid: 404 Not Found
at 
org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:204)
at hudson.remoting.Engine.innerRun(Engine.java:518)
at hudson.remoting.Engine.run(Engine.java:469)

I am the one that set up all 4 systems.  Doing side-by-side comparisons, 
everything seems the same.  I have entered firewall exceptions (or turned 
off).  I have the same JAVA on all.  I have added exceptions in JAVA as 
appropriate.

The only diagnostics I can find is from CloudBees and only semi-applies to 
what I am trying to diagnose.

-- 
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/7ebbd44b-36a0-4d6f-ba86-3bcc0159ac00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Heads up! Jenkins is on YouTube, with more videos coming soon!

2018-04-11 Thread nelson . araujo
Awesome!

El martes, 10 de abril de 2018, 23:02:03 (UTC-3), R Tyler Croy escribió:
>
>
> The Jenkins project has been on YouTube for a while, but I recently 
> transitioned our channel to a "Brand Account", which means we can share 
> permissions to post videos _much_ more easily: 
>
> https://www.youtube.com/c/jenkinscicd 
>
>
> I am hoping that we can share access, not only for the Jenkins Online 
> Meetups 
> (https://www.meetup.com/Jenkins-online-meetup/), but also for more 
> project 
> meetings and group meetings (see also: 
> https://groups.google.com/d/msg/jenkinsci-dev/6-1mZoKp4hM/EHz5NaPRBgAJ). 
>
>
> Hope you all find more video content helpful! 
>
>
> Cheers 
>
>

-- 
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/6557e965-e040-4055-a868-e724fb52e55d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PLUGIN QUALITY GATES SONAR

2018-04-11 Thread Virginia Mesa

Hello, Can someone tell me some plugin for Jenkins to try the Quality Gates 
in Sonar? The plugin I have installed (*Quality Gates Plugin* 
) gives 
me an error.
Does anyone know anything else, or does this work?

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/e093c153-ec62-49f0-8895-8dfd4d5bf457%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Scripted Pipeline - Declare a variable and modify it inside a docker.image directive

2018-04-11 Thread Roberto Fabrizi
Dear Friends,
I'm trying to accomplish this with my pipeline:

   - test a part of my newly produced artifact against some previous 
   artifacts inside a docker base image
   - if they are the same, launch a docker build using dockerfileA, 
   otherwise using dockerfileB
   
I've arrived at this point:

docker.image("mybaseimage").inside {
try {
...
sh 'find 
tmp_unzip_path/dependencies -type f -exec md5sum {} + | sort -k 2 | awk 
{\'print $1\'} > dir1.txt'
sh 'find /opt/docker/lib -type f 
-exec md5sum {} + | sort -k 2 | awk {\'print $1\'} > dir2.txt'
//sh 'printenv'
sh '''if [ $(echo $?) -eq 0 ]; then
echo "No changes to the 
dependencies!"
else
echo "Dependencies must be 
updated!"

What I'd like to do is assign the result of if statement to a variable, so 
I can use it to make another choise later on.
I've tried variables, environment variables, but neither is working. This 
is one try for example:

withEnv(["DEP_UNCHANGED=0"]) {
...
same code as before
sh '''if [ $(echo $?) -eq 0 ]; then
 DEP_UNCHANGED=0
else 
DEP_UNCHANGED=1
...
}

This says that DEP_UNCHANGED is not defined. Ironically enough if I do this:

withEnv(["DEP_UNCHANGED=0"]) {
...
same code as before
sh '''if [ $(echo $?) -eq 0 ]; then
 $DEP_UNCHANGED=0
else 
$DEP_UNCHANGED=1
...
}

it complains that 0 = 0, so it IS defined I guess
printenv also does print DEP_UNCHANGED=0, so it IS defined?

What is the proper way to accomplish this?
Thank you so much,
Best regards,
Roberto

-- 
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/dd51bf00-0f05-4098-aed7-9e993d5c16c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to abort a job during it's execution by itself

2018-04-11 Thread iostrym
Is there a possibility to abort a job during it's execution by the job itself.

For instance the job launch a script that do the update from versioning tool 
and if no update are available, then the job is aborted.
This way the job is not stored at all by Jenkins.

Some plugin do already the tool versioning scrutation but we can't use them for 
our specific tool versioning version.

This is why I'm looking for a smart way to abort a build.

-- 
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/a7a42fdc-bc4a-4b9b-bfed-4b81ea0d87f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.