Re: Jenkins IIS Reverse Proxy

2017-05-25 Thread Stephen Connolly
https://our.server.name/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/testForReverseProxySetup/https%3A%2F%2Four.server.name%2Fmanage/

Looks like the URL rewrite rule is setup wrong and is double prefix with
https://...
On Thu 25 May 2017 at 20:45, Terry Lacy  wrote:

> Here's some extra information I haven't posted before.
>
> The wiki page linked from the "More Info" button (
> https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+says+my+reverse+proxy+setup+is+broken)
> says this curl command will provide more info:
>
> curl -iL -e http://your.reverse.proxy/jenkins/manage \
>http:
> //your.reverse.proxy/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
>
> I ran that from one of our linux servers. This was the result:
>
> $ curl -u ':' -iL -e https://our.server.name/manage
> https://our.server.name/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
>
>
> HTTP/1.1 302
> Cache-Control: private
> Content-Length: 0
> Expires: Wed, 31 Dec 1969 17:00:00 MST
> Location: https://
> our.server.name/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/testForReverseProxySetup/https%3A%2F%2Four.server.name%2Fmanage/
> X-Content-Type-Options: nosniff
> X-Powered-By: ARR/3.0
> Date: Thu, 25 May 2017 19:30:37 GMT
>
>
> HTTP/1.1 404
> Cache-Control: private
> Content-Length: 1116
> Content-Type: text/html;charset=utf-8
> Content-Language: en
> Expires: Wed, 31 Dec 1969 17:00:00 MST
> X-Content-Type-Options: nosniff
> X-Powered-By: ARR/3.0
> Date: Thu, 25 May 2017 19:30:40 GMT
>
>
> HTTP Status 404 – Not 
> Found type="text/css">h1
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> h2
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> h3
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> body
> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b
> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> p
> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}
> a {color:black;} a.name {color:black;} .line
> {height:1px;background-color:#525D76;border:none;}HTTP
> Status 404 – Not FoundType Status
> ReportMessage https://our.server.name/manage vs.
> https:Description The origin server did not find a current
> representation for the target resource or is not willing to disclose that
> one exists.Apache
> Tomcat/8.5.14
>
> Any helpful information there?
>
> Terry
>
>
> On Wednesday, May 24, 2017 at 9:51:29 AM UTC-6, Terry Lacy wrote:
>>
>> I posted a bug (https://issues.jenkins-ci.org/browse/JENKINS-44239
>> ),
>> and it was resolved as "not a defect", so I'm back here, still looking for
>> a solution.
>>
>> Does anyone here run Jenkins behind IIS? Are you using a recent version?
>> Are you able to get rid of the "It appears that your reverse proxy set up
>> is broken" error?
>>
>> Thanks,
>> Terry
>>
>
>
> --
> 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/e9d7f7ee-2494-40a9-b0af-1f8ee57ec037%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from my phone

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


Docker Slaves like plugin

2017-05-25 Thread Jacob Larsen
Does anybody know what will happen to the Docker Slaves plugin? It looks 
like development has halted when looking at commit activity. I took a look 
at the Dockins stuff, but it looks like that is just as dead. Does anybody 
know where I should look if I have these requirements:
* The jenkins slave does not run inside the build container (This is the 
main feature of Docker Slaves)
* Multiple docker hosts supported, selectable by label just like any other 
jenkins slave (Missing feature in Docker Slaves)
* Number of containers for each docker host can be limited (Feature in 
Docker Slaves that is not working)

Ideally, I imagine a setup where a jenkins slave can control a docker host 
on the same machine, possibly marked with slave labels like other special 
capabilities. Each dockerNode (or similar) will then take an executor on 
one of these slaves an start the job with the defined image. That image 
will then not need any jenkins-specific content, but can focus on just the 
stuff needed for that particular build. At the same time, the jenkins 
resource control ensures the load matches the capabilities of each docker 
host.

What would be the best approach to getting something like this? Does 
another plugin exist for this or would I need to throw myself into the 
plugin development? If Docker Slaves is indeed dead, I guess it could 
serve as a base for this.

/Jacob

-- 
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/4a8221c1-3217-4b00-8ff1-598f6c739874%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: emailext jelly template access changetSet

2017-05-25 Thread Jérôme Godbout
I haven't found the way to make it work into Jelly and did not found time
to test Groovy template either sadly :-(

I made many changes manually by a replace function into a copy of the
template before sending the template so I probably will be able to replace
the changelog with the following pipeline script:

def changeLogSets = currentBuild.changeSets
for (int i = 0; i < changeLogSets.size(); i++) { ... replace into the
template file text for each line into html format string...}

Haven't test it yet, but my I already read  file out of my template and
replace some variable and write back a temporary template that I send.

// Replace literal ${VAR} by the map[VAR] entry
def replaceMapIntoStr(str, replace_map)
{
def rv = str;
for(item in replace_map)
{
rv = rv.replace('${' + item.key + '}', item.value);
}
return rv;
}

As matter of fact I assemble multiple template part based on the current
build result and steps done.

[image: bodycad] 
Jerome Godbout
Software Developer
2035 rue du Haut-Bord, Québec, QC, Canada. G1N 4R7
T:  +1 418 527-1388
E: jer...@bodycad.com
www.bodycad.com

The contents of this email message and any attachments are intended solely
for the addressee(s) and may contain confidential and/or privileged
information and may be legally protected from disclosure. If you are not
the intended recipient of this message or their agent, or if this message
has been addressed to you in error, please immediately alert the sender by
reply email and then delete this message and any attachments. If you are
not the intended recipient, you are hereby notified that any use,
dissemination, copying, or storage of this message or its attachments is
strictly prohibited.

Le contenu de ce message et les pièces jointes sont destinés uniquement
pour le(s) destinataire(s) et peuvent contenir des informations
confidentielles et / ou privilégiées qui peuvent être protégées légalement
contre toute divulgation. Si vous n'êtes pas le destinataire de ce message
ou son agent, ou si ce message vous a été adressé par erreur, s’il vous
plaît avertir immédiatement l'expéditeur par courriel de réponse, puis
supprimer ce message et les pièces jointes. Si vous n'êtes pas le
destinataire prévu, vous êtes par la présente informé que toute
utilisation, diffusion, copie, ou stockage de ce message ou de ses pièces
jointes est strictement interdit.

On Thu, May 25, 2017 at 2:12 PM, Manny DaSilva 
wrote:

> I'm in the same situation. Have you found a solution using Jelly? I tried
> currentBuild.changeSets as described in the doc but it doesn't work in the
> Jelly template.
>
>
> On Wednesday, October 19, 2016 at 12:09:22 PM UTC-4, jer...@bodycad.com
> wrote:
>>
>> I haven't tested this yet, but does this groovy template work into a
>> pipeline? we used to have a groovy template like this before that did
>> exactly what you propose. Since I wasn't sure how to select the groovy
>> script (now I do, thanks to someone on this forum) and found how to use a
>> jelly template before I converted everything to Jelly. The Jelly equivalent
>> doesn't seem to work. I wonder if this is du to Jelly templating or the
>> pipeline??? If this is the jelly, I will convert back to Groovy, else I
>> will stick to Jelly, the template is cleaner IMO.
>>
>> Thanks,
>> Jerome
>>
>> I will try this and come back on this
>>
>> On Wednesday, October 19, 2016 at 5:56:51 AM UTC-4, touseef wrote:
>>>
>>> May be this code might helped u as i had similar requirement but i 
>>> implemented it in groovy script
>>>
>>>
>>> 
>>> <% changeSet = build.changeSet
>>> if (changeSet != null) {
>>> hadChanges = false %>
>>> Changes
>>> 
>>> <% changeSet.each { cs ->
>>> hadChanges = true
>>> aUser = cs.author %>
>>> Commit ${cs.revision} by <%= aUser != null ? 
>>> aUser.displayName :  it.author.displayName %>: (${cs.msg})
>>> 
>>> <% cs.affectedFiles.each { %>
>>> ${it.editType.name}: 
>>> ${it.path}   <%  } %> <%  }
>>>
>>>  if (!hadChanges) { %>
>>>   No Changes !!
>>>  <%  } %><% } %>
>>>
>>>
>>> *And regarding the count u cant use this*
>>>
>>> *def size= build.changeSet.items.length*
>>>
>>>
>>> On Monday, 17 October 2016 20:36:33 UTC+5:30, jer...@bodycad.com wrote:

 Hi,
 I have use the Jelly template to re enable most of our email content,
 except 2 things I still cannot do, the revision change set and the warnings
 counts (the later is not too bad, we are moving to warnings as errors
 anyway).

 Any body have a way to access the scm changeSet into the pipeline
 emailext template?

 I tried without any luck:

- ${build.changeSet}
- ${build.changeSets}
- ${currentBuild.changeSets}
- ${manager.build.changeSets}
- ${manager.build.changeSet}

 the console log are accessible with ${build.getLog()}
 the artifacts are with ${build.artifacts}

 The warning were:
 

Error java.io.IOException: Cannot run program

2017-05-25 Thread Rodolfo Domingues Junior
Good afternoon people 

I am with a problem to run a build of ansible-plugin on Jenkins server, the 
command run but show the error message. I tried with user jenkins and user 
root

Started by user anonymous 
Building in workspace /var/lib/jenkins/workspace/Cron
[Cron] $ /bin/sh -xe /tmp/hudson4765850056500533711.sh
+ uname -an
Linux jks.domain 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue x86_64 GNU/Linux
[Cron] $ /var/lib/jenkins/plugins/ansible-playbook hosts_teste.yml -f 5 
--private-key /tmp/ssh91024.key -u root
FATAL: command execution failedjava.io.IOException 
: Cannot run 
program "/var/lib/jenkins/plugins/ansible-playbook" (in directory 
"/var/lib/jenkins/workspace/Cron"): error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) 

at hudson.Proc$LocalProc.(Proc.java:243) 

at hudson.Proc$LocalProc.(Proc.java:212) 

at hudson.Launcher$LocalLauncher.launch(Launcher.java:815) 

at hudson.Launcher$ProcStarter.start(Launcher.java:381) 

at hudson.Launcher$ProcStarter.join(Launcher.java:388) 

at org.jenkinsci.plugins.ansible.CLIRunner.execute(CLIRunner.java:49) 

at 
org.jenkinsci.plugins.ansible.AbstractAnsibleInvocation.execute(AbstractAnsibleInvocation.java:247)
 

at 
org.jenkinsci.plugins.ansible.AnsiblePlaybookInvocation.execute(AnsiblePlaybookInvocation.java:31)
 

at 
org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:225)
 

at 
org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:199)
 

at 
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
 

at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
 

at hudson.model.Build$BuildExecution.build(Build.java:205) 

at hudson.model.Build$BuildExecution.doRun(Build.java:162) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) 

at hudson.model.Run.execute(Run.java:1720) 

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 

at hudson.model.ResourceController.execute(ResourceController.java:98) 

at hudson.model.Executor.run(Executor.java:404) 

Caused by: java.io.IOException 
: error=13, 
Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:187)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 20 more
FATAL: Cannot run program 

[SOLVED] Re: Pipeline uses 2 executors when changing node

2017-05-25 Thread Andreas Tscharner
On 19.05.2017 15:31, Andreas Tscharner wrote:
> Hello World,

Hello again,
> 

I found the solution.
> Now I created a pipeline which starts at a "build" node. It runs there
> and displays "part of ...".
> Now at some point in the pipeline I want to switch to an "aat" node for

I switched to that aat node using "agent { label 'aat' }"; that worked,
but the job itself was also marked to work only on a node with label
aat, so I think it then switched again.
If I just skipped the "agent" statement, it worked (one job) as expected.

Best regards
Andreas
-- 
Andreas Tscharner sternenfe...@gmail.com

Der entscheidende Vorteil eines Chats gegenueber einem normalen Telefon-
anruf ist der, dass ersterer langsamer geht und mehr kostet (fuer den
lebenswichtigen Austausch von Informationen wie "hya folks", "C U
l8er" und ":-)") ...   Aus Murphy's Computergesetzen

-- 
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/2b566496-8f81-4459-7d4c-2288abc1b0dd%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [EXTERNAL] - Re: Notify "n Minutes before Job Starts"

2017-05-25 Thread Chandanlal Chouhan
I have added a bash script to do this and it's working smoothly.

On Wednesday, 24 May 2017 14:58:58 UTC+1, Dirk Heinrichs wrote:
>
> Am 24.05.2017 um 12:23 schrieb Chandanlal Chouhan:
>
> I am actually looking for similar kind of solution in which I need to send 
> email using email-extn plugin before build and then sleep for 2 minute and 
> then MSBuild starts and deployed to server.  I have tried using quite 
> feature of Jenkins but does not serve my purpose. 
> I am new to Jenkins. Can anyone help me in this. example would be 
> appreciated.
>
>
> EMail Ext Plugin won't help you here, since it's a post-build action. 
> However, you could put bash script as first build step into your job that 
> sends the mail and then sleeps for 2 minutes before continuing with the 
> next step. You could also put that into a wrapper job which only executes 
> the bash build step and then triggers your real job.
>
> HTH...
>
> Dirk
> -- 
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenTextTM Discovery | Recommind
> *Email*: dirk.he...@recommind.com 
> *Website*: www.recommind.de
>
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>
> Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon 
> Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 
> 10646
>
> 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
>
> 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 sind nicht gestattet.
>

-- 
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/159ad892-5385-4e47-890f-2b28f30fa045%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having Jenkins update itself from 2.52 to 2.62 fails, saying it needs Java7

2017-05-25 Thread James Nord
Given you installed from the msi I would upgrade from the msi (running the new msi should upgrade everything. Test first!) On 24 May 2017 7:39 pm, Jeremy Morton  wrote:Jenkins requires Java7 or later, but you are running 1.7.0_25-b17 from C:\Program Files (x86)\Jenkins\jreIt looks like Jenkins now requires Java8, but the error message is still behind? How do I update Jenkins' Java version, since it only updates the .war file?Thanks,Jeremy



-- 
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/59bf6054-54bb-4701-b63f-22ef126f96b8%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/bb953c30-e330-49b6-879a-a5d6e12fea0e%40email.android.com.
For more options, visit https://groups.google.com/d/optout.