Bitbucket Branch Source Plugin & Endpoints

2017-10-04 Thread Richard Bywater
Hi One of my colleagues is trying to get Jenkins 2 up and running with the Bitbucket Branch Source plugin using our Bitbucket Server infrastructure. We've run into an issue with the plugin as it appears it expects the server URL defined in the Bitbucket endpoint configuration to be the same as

Re: Nagios & Jenkins

2017-10-04 Thread Robert Hales
Can you set your nagios to not alert so quickly? Make it have a couple more failures or an extra minute between checks so it goes into a soft state for a minute first. Why can't you write a brief downtime to the nagios.cmd file in Jenkins first? You could disable notifications using a curl

Nagios & Jenkins

2017-10-04 Thread FirstName LastName
have a simple Jenkins deploy job (works great) however, every time a deploy is done, app restarts , we get alert that app is down is there a way to have Jenkins start a deploy by disabling nagios, wait x min, then do the app restart? configuring downtime windows, or manually setting on

Jenkins pipeline prematurely kills docker container

2017-10-04 Thread xstourac
Hi all, I am currently dealing with very weird behaviour of my Jenkins instance. I want to use docker containers via pipeline to build my app. But everytime I tried even something simple like this: node() { stage('Build') { docker.image('debian:stretch').inside() { sh 'sleep 20' } }

Re: Is there any difference between "shell" and "sh"?

2017-10-04 Thread Victor Martinez
Hey, https://jenkins.io/doc/book/pipeline/syntax/#declarative-steps explains it. 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

Why does the jenkinsfile use a closure in this way?

2017-10-04 Thread red 888
Its a command pattern to write jenkins pipeline code like this: def call(body) { def config = [:] body.resolveStrategy = Closure.DELEGATE_FIRST body.delegate = config body() Im not sure how to word this simply, but this closure get implicitly imported and can be called by the

Re: Is there any difference between "shell" and "sh"?

2017-10-04 Thread dandeliondodgeball
Sorry, meant "script" and "sh". -- 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

Re: Fail to install Jenkins slave agent as a service

2017-10-04 Thread Victoria Wei Lei
Ewelina, I did run slave-agent.jnlp from command line, agent started running, however I did not have running slave pop up which give me the option from file -> Install as a service (: Thanks On Friday, September 29, 2017 at 7:47:07 AM UTC-5, Ewelina Wilkosz wrote: > > Did you manage to

Re: Is there any difference between "shell" and "sh"?

2017-10-04 Thread dandeliondodgeball
Sorry, as I sort of have an online conversation with myself. I guess "shell" isn't the same as running something from the command line. pipeline { agent any stages { stage('ViewArchive') { steps { // Works sh 'unzip -l

Re: LTS support timelines

2017-10-04 Thread lv via Jenkins Users
Thank you for the quick reply! On Wednesday, October 4, 2017 at 2:31:40 PM UTC-4, R Tyler Croy wrote: > > (replies inline) > > On Wed, 04 Oct 2017, lv via Jenkins Users wrote: > > > Hi All, > > > > I'm one of the people maintaining the public Jenkins installation of the > > Apache Impala

Is there any difference between "shell" and "sh"?

2017-10-04 Thread dandeliondodgeball
Is one preferred / better? -- 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

Re: Stages which are not Build, Test, or Deploy

2017-10-04 Thread dandeliondodgeball
Tested again, and wasn't able to recreate the issue. Seeing stages with other names in Jenkins now. 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

Re: Another CLI question

2017-10-04 Thread Richard Ginga
Hi Michael, thanks for the response, nothing in my nginx configuration indicates any buffering explicitly one way or the other. On Wed, Oct 4, 2017 at 3:17 PM, Michael Pailloncy < michael.paillo...@gmail.com> wrote: > If you run this very same command directly on the Jenkins server and >

Re: In a shared library, what is the "vars/foo.txt" file USED for?

2017-10-04 Thread red 888
Interesting I check there and didn't see them. Does this mean my txt files aren't formatted correctly? I just put a sentence in one to test. On Monday, October 2, 2017 at 11:25:43 PM UTC-4, Robert Hales wrote: > > The .txt file shows up on the PipelineSyntax/Global Variables Reference > page.

Re: “Copy artifacts from another project” and Jenkinsfiles are exclusive, correct?

2017-10-04 Thread dandeliondodgeball
So this worked (scripted) node { step ([$class: 'CopyArtifact', projectName: 'Create_Infrastructure_archive']); This doesn't break, but nothing happens (declarative). pipeline { agent any stages { stage('Build') { steps { script {

Re: LDAP and systemctl jenkins restart

2017-10-04 Thread Michael Pailloncy
No, clearly it doesn't sound to be the way it should work :-) Do you see any error/exception inside Jenkins's logs when you save your LDAP configuration or during Jenkins startup ? Cheers 2017-10-03 15:55 GMT+02:00 Joaquin Henriquez < joaquin.henriq...@countercept.com>: > Hi ppl > > > > I

Re: Another CLI question

2017-10-04 Thread Michael Pailloncy
If you run this very same command directly on the Jenkins server and without reaching it through your reverse proxy, does it work ? I'm wondering if it's not related to the configuration of your reverse proxy. As described in this documentation

Re: LTS support timelines

2017-10-04 Thread R. Tyler Croy
(replies inline) On Wed, 04 Oct 2017, lv via Jenkins Users wrote: > Hi All, > > I'm one of the people maintaining the public Jenkins installation of the > Apache Impala (Incubating) project, and since it is facing the public > internet we're particularly interested in keeping our installation

Re: “Copy artifacts from another project” and Jenkinsfiles are exclusive, correct?

2017-10-04 Thread Robert Hales
I don't know of any declarative support, but you can still wrap it in a script{} block in declarative. On Wednesday, October 4, 2017 at 10:27:01 AM UTC-6, dandeliondodgeball wrote: > > Helpful, thanks. > > So there is only a scripted pipeline solution, no support for declarative, > correct? >

Re: No such DSL method 'post' found

2017-10-04 Thread Robert Hales
Sounds like you are trying to use Post in the wrong place - most likely in a scripted pipeline. If you were using it correctly, but it wasn't available, the error message would say something about an "Undefined Section". You can't use "post" in a scripted pipeline. Instead, you have to use a

Re: GitSCM reference repository - how to verify it is working?

2017-10-04 Thread Mark Waite
If you're willing to experiment, a change was recently merged to the git-client-plugin which prints a message giving the path to the reference repo. You can download the unreleased build from https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fgit-client-plugin/detail/master/148/artifacts

GitSCM reference repository - how to verify it is working?

2017-10-04 Thread Luke Lussenden
I'm not seeing any clear indication that the reference repository I am providing is being utilized. I don't see the "--reference" argument in any of the Git commands that are printed to the console and I am not seeing the cache boost I would expect. I want to use a reference repository

LTS support timelines

2017-10-04 Thread lv via Jenkins Users
Hi All, I'm one of the people maintaining the public Jenkins installation of the Apache Impala (Incubating) project, and since it is facing the public internet we're particularly interested in keeping our installation secure. We are currently running LTS 2.46.3 and I'm trying to figure out

No such DSL method 'post' found

2017-10-04 Thread Indra Gunawan
Hi, I would like to archive build images files produced after a successful build step/stage in Jenkins pipeline. Is "post", the declarative pipeline syntax, the only way to have post-build defined in Jenkins pipeline. Somehow it is not available on the Jenkins environment I have:

Re: Another CLI question

2017-10-04 Thread Richard Ginga
is anybody out there? my script syntax for this is cmd = 'java -jar ~/Downloads/jenkins-cli.jar -noKeyAuth -s https://stt-jenkins.disruptorbeam.com/ -auth rginga:0793b086e3c9272ddeb0daff1093518c connect-node ' + params.NODENAME st = sh(returnStatus: true, script: cmd) On Wed,

Re: “Copy artifacts from another project” and Jenkinsfiles are exclusive, correct?

2017-10-04 Thread dandeliondodgeball
Helpful, thanks. So there is only a scripted pipeline solution, no support for declarative, correct? -- 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

Pre-approval of Groovy script files

2017-10-04 Thread Clément
Hi every one ! I'm preparing the migration of my Jenkins project on the Jenkins2 version and it seems like groovy scripts are not managed the same way. I have numerous jobs which use groovy scripts. Some of them are very small, and "inlined" in job config. For those scripts, current approval

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Riccardo Foschia
Am 04.10.2017 um 15:51 schrieb Devin Nusbaum: Do you see any errors in the logs on the Jenkins server, and is the jenkins-cli.jar you are using from your 2.81 instance? You can download a fresh jar from http://YOUR_HOST/jenkins/jnlpJars/jenkins-cli.jar. (If you aren’t using the /jenkins

Another CLI question

2017-10-04 Thread Richard Ginga
I see a thread happening on CLI issues. I have a different question/issue and do not want to hijack that other discussion. when running any cli in a pipeline script I an getting below but the command works *00:04:11.368* + java -jar /Users/jenkins/Downloads/jenkins-cli.jar -noKeyAuth -s

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Devin Nusbaum
Do you see any errors in the logs on the Jenkins server, and is the jenkins-cli.jar you are using from your 2.81 instance? You can download a fresh jar from http://YOUR_HOST/jenkins/jnlpJars/jenkins-cli.jar. (If you aren’t using the /jenkins context path just

RE: Trouble running JNLP slave as a service in Windows 10

2017-10-04 Thread David Aldrich
> Does that not show the "Install as a Service" menu item? No. The command windows shows the agent is connected but there is no pop-up with an "Install as a Service" menu item. BR David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide Sent:

Re: Trouble running JNLP slave as a service in Windows 10

2017-10-04 Thread Slide
That page is for DCOM agents, not JNLP agents. The easiest method to do this is to open an administrator console and then run the command you specified in your original email: java -jar slave.jar -jnlpUrl http:///computer//slave-agent.jnlp -secret Does that not show the "Install as a Service"

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Riccardo Foschia
Am 04.10.2017 um 14:53 schrieb Daniel Beck: On 4. Oct 2017, at 14:29, Riccardo Foschia wrote: Thanks for your answer, but there is no proxy running. What security realm are you using? We are using LDAP and project based matrix authorization (like

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Daniel Beck
> On 4. Oct 2017, at 14:29, Riccardo Foschia > wrote: > > Thanks for your answer, but there is no proxy running. What security realm are you using? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Riccardo Foschia
Am 04.10.2017 um 14:00 schrieb Daniel Beck: On 4. Oct 2017, at 13:50, Riccardo Foschia wrote: after an upgrade of Jenkins 1.638 to 2.81 CLI I need to switch to http protocol but it doesn't work (SSH protocol seems to work after the upgrade). No matter

Re: Trouble running JNLP slave as a service in Windows 10

2017-10-04 Thread Khomyuk Viktor
Hi. Install slave as service is not easy :) Look at the https://wiki.jenkins.io/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM? Start with "Enable Remote Registry Access". One error will be replaced by another, but after some time you will achieve your goal.

Re: Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Daniel Beck
> On 4. Oct 2017, at 13:50, Riccardo Foschia > wrote: > > after an upgrade of Jenkins 1.638 to 2.81 CLI I need to switch to http > protocol but it doesn't work (SSH protocol seems to work after the upgrade). > > No matter which CLI command I use, after a few

Jenkins CLI with http protocol does not respond in 2.81

2017-10-04 Thread Riccardo Foschia
Hi all, after an upgrade of Jenkins 1.638 to 2.81 CLI I need to switch to http protocol but it doesn't work (SSH protocol seems to work after the upgrade). No matter which CLI command I use, after a few seconds the call returns but shows no result. E.g. java -jar jenkins-cli.jar -s

Re: Pipeline Maven: Running on Windows slave

2017-10-04 Thread Sverre Moe
Here follows an update of some observations and configurations I have done to get building on Windows to work. The Windows node is connected in Jenkins with SSH started by sshd in Cygwin. Using this guide:

Trouble running JNLP slave as a service in Windows 10

2017-10-04 Thread David Aldrich
Hi I want to install a JNLP slave as a service in Windows 10. If I use the 'easy' method of going to the node page, from the slave machine, and clicking on the Launch button, the slave launches. But if I select 'File > Install as a service' I get an exception:

Re: Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked.

2017-10-04 Thread YAN-HONG WANG
Hi Carlos, Thanks for your valuable hint. That's worked on Ubuntu 16.04 environment since I added RBAC roles setup. Something interesting is that before I always run in Minikube environment without RBAC role, that still can run. Thanks anyway. Hong Am Dienstag, 3. Oktober 2017 12:15:11 UTC+2

Re: Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

2017-10-04 Thread Daniel Beck
> On 4. Oct 2017, at 09:00, Eric Tan wrote: > > Is it possible to mix declarative and scripted pipeline syntax in one > Jenkinsfile ? > https://jenkins.io/doc/book/pipeline/syntax/#script -- You received this message because you are subscribed to the Google Groups

Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

2017-10-04 Thread Eric Tan
Hi, Is it possible to mix declarative and scripted pipeline syntax in one Jenkinsfile ? For example, there is no withRun() equivalent in the declarative syntax. https://issues.jenkins-ci.org/browse/JENKINS-41581 Thanks, Eric -- You received this message because you are subscribed to the