Invoke Windows Installer in Interactive mode Through Jenkins

2017-04-06 Thread Bangar Milind
Hi, We are trying to automate the deployment of a windows application in which Setup.exe runs a MSI. The MSI launches in interactive mode and has fields which will be required to updated dynamically. We have written a Powershell script , which works fine when running on the Windows app server

Re: Invoke Windows Installer in Interactive mode Through Jenkins

2017-04-06 Thread Benjamin Lau
Bangar, I'd suspect the problem is similar to the one described in this thread about 10 days ago: https://groups.google.com/forum/#!topic/jenkinsci-users/zzECJya_vDY Is your jenkins slave running the agent as a service? Try running the agent as a non-service as slide suggested and see if that wor

RE: Invoke Windows Installer in Interactive mode Through Jenkins

2017-04-06 Thread 'Sebastian Glöckler' via Jenkins Users
Hi, we also have a windows server product which needs to be installed interactively. We have (click-)automated the installation process with AutoIt. To get around the issue mentioned below, you might want to run your script in the context of a “real” user and load the user’s profile. CMD.exe’s “

Re: Cannot run installed software via plugin, error=2, No such file or directory

2017-04-06 Thread Luis Tiago Rico
Hi, moved from Alpine docker image to Ubuntu one and problems were gone. That "No such file or directory" message, has references all over the internet for the problem Mark states 32 vs 64bit Arch. incompatibilities, but I could not find the right solution for it! I suspect that some installat

Re: Parameterized Scheduler plugin: Jenkins doesn't accept extended syntax

2017-04-06 Thread Knurek
you should see Build periodically with parameters https://github.com/jenkinsci/parameterized-scheduler-plugin/blob/master/README.md#configuration your screenshot implies you missed seeing this bit of important info: Warning: the plugin configuration is only visible for jobs with parameters. This

Concurrency and workspace@2

2017-04-06 Thread Igar N
Hi! I have migrated from old version 1.596 to the latest 2.53. And now Jenkins does not create separate "workspace" folders with @ for each concurrent builds. Because of that I'm losing concurrent execution: no matter how many concurrent jobs you have been started, the job triggers only once. Ho

Re: StackOverFlow with pipeline script

2017-04-06 Thread NickA
Thank you for the feedback; what version are you using? I am using 2.19.4.1 and can't update this company server. I see it immediately, I start it up and get the stack overflow and the script doesn't even start. On Thursday, April 6, 2017 at 8:28:34 AM UTC+2, NickA wrote: > > Hi, > > I have a pr

Re: StackOverFlow with pipeline script

2017-04-06 Thread Knurek
I checked that on Jenkins 2.32.2 I assume that: node { stage('Build') { echo 'Building..' } } works fine? My understanding is that the pipeline/agent is part of the new declarative extension of the pipeline DSL - that was only officially released in February, so maybe you're lac

Re: StackOverFlow with pipeline script

2017-04-06 Thread NickA
Even that doesn't work; I've tried all kinds of examples and even this simple one fails. Must be something with the configuration of the server itself but where to look. :-s I'll check when our server will be upgraded. On Thursday, April 6, 2017 at 3:21:08 PM UTC+2, Knurek wrote: > > I checked t

Re: Parameterized Scheduler plugin: Jenkins doesn't accept extended syntax

2017-04-06 Thread Anne van der Bom
Hi Knurek, Thank you for helping me out. My job does have parameters. After some trying with others jobs, it turns out that the plugin doesn't work for pipeline jobs. Op donderdag 6 april 2017 12:19:03 UTC+2 schreef Knurek: > > you should see > Build periodically with parameters > > https://

Add the version after the app name (Deploy to Container Plugin)

2017-04-06 Thread Elcio Junior
Hi, I use Jenkins with the Deploy to Container Plugin and I can deploy to my server (glassfish). The app looks like this: Test.war But I want to add the version after the app name. Example: Test-1.0.war Could someone tell me what configuration is needed so that when accessing the glassfi

Re: Concurrency and workspace@2

2017-04-06 Thread Daniel Beck
> On 06.04.2017, at 13:32, Igar N wrote: > > And now Jenkins does not create separate "workspace" folders with @ for each > concurrent builds. Because of that I'm losing concurrent execution: no matter > how many concurrent jobs you have been started, the job triggers only once. > How can I f

After uninstalling Blue Ocean 1.0, link to build in GitHub remains with /blue, leading to 404

2017-04-06 Thread Idan Adar
Apparently after installing Blue Ocean, the build check links in GitHub were changed to /blue. Was this mentioned somewhere? After uninstalling Blue Ocean (I uninstalled all "blue ocean" plugins), the link remains... but now it leads to 404, because whatever /blue is, it's no longer available.

Access M2 Release Plugin release permission through groovy

2017-04-06 Thread Tina Danielsson
I'm trying to create a groovy script where I set the release permissions fort he M2 Release Plugin. But I can't figure out how to do that. The build in permissons can be accessed via hudson.model.Item.PROPERTY, for example hudson.model.Item.CANCEL. But hudson.model.Item.Release just returns "No

Valid use of environment directive

2017-04-06 Thread Idan Adar
Is this a valid use of environment directive and variables in declarative pipeline? pipeline { environment { MY_VAR = null } stages { stage ("...") { steps { MY_VAR = "this_stage" } } stage ("...") { steps { MY_VAR

How to replace withCredentials([usernamePassword ... with credentials(...)

2017-04-06 Thread Idan Adar
In declarative pipeline, one can use credentials() instead of withCredentials, but I am not really sure how this works. In general, lots of examples are missing... Assuming I've created in Jenkins a credential for an access token, I can do this: stage ("Merge pull request") { environment {

Re: Valid use of environment directive

2017-04-06 Thread Idan Adar
Perhaps Robert (CCed) can help? On Thursday, April 6, 2017 at 6:08:18 PM UTC+3, Idan Adar wrote: > > Is this a valid use of environment directive and variables in declarative > pipeline? > > pipeline { >environment { >MY_VAR = null >} > > >stages { > stage ("...") { >

Re: How to replace withCredentials([usernamePassword ... with credentials(...)

2017-04-06 Thread Idan Adar
Perhaps Robert (CCed) can help? On Thursday, April 6, 2017 at 6:26:00 PM UTC+3, Idan Adar wrote: > > In declarative pipeline, one can use credentials() instead > of withCredentials, but I am not really sure how this works. In general, > lots of examples are missing... > > Assuming I've created i

Re: After uninstalling Blue Ocean 1.0, link to build in GitHub remains with /blue, leading to 404

2017-04-06 Thread Idan Adar
Perhaps Liam (CCed) can help? On Thursday, April 6, 2017 at 5:41:03 PM UTC+3, Idan Adar wrote: > > Apparently after installing Blue Ocean, the build check links in GitHub > were changed to /blue. Was this mentioned somewhere? > After uninstalling Blue Ocean (I uninstalled all "blue ocean" plugins

Re: Valid use of environment directive

2017-04-06 Thread Danny Rehelis
Encapsulate MY_VAR in script { } blocked required to set a variable when using declarative pipeline inside a Stage. No need to declare it with-in environment { }. On Thu, Apr 6, 2017, 18:42 Idan Adar wrote: > Perhaps Robert (CCed) can help? > > > On Thursday, April 6, 2017 at 6:08:18 PM UTC+3,

Re: Valid use of environment directive

2017-04-06 Thread Idan Adar
Yes, that's how I do it in my actual Jenkinsfile, but I thought maybe in a Declarative pipeline this works differently... On Thursday, April 6, 2017 at 6:57:13 PM UTC+3, Danny Rehelis wrote: > > Encapsulate MY_VAR in script { } blocked required to set a variable when > using declarative pipeline

Re: Jenkins Job gets triggered by Bitbucket Push event but not by Pull request event.

2017-04-06 Thread Kevin Burnett
if you're using bitbucket server and the recommended bitbucket server add-on, maybe you're running into this documented regression: https://github.com/topicusfinan/bitbucket-webhooks-plugin/issues/31. if so, as discussed in this github issue, a workaround is to downgrade this add-on to version

Re: Valid use of environment directive

2017-04-06 Thread Andrew Bayer
No, that's definitely not intended to work that way, and it probably won't work. On Apr 6, 2017 9:09 AM, "Idan Adar" wrote: > Yes, that's how I do it in my actual Jenkinsfile, but I thought maybe in a > Declarative pipeline this works differently... > > On Thursday, April 6, 2017 at 6:57:13 PM U

Re: How to replace withCredentials([usernamePassword ... with credentials(...)

2017-04-06 Thread Andrew Bayer
FOO = credentials('id') will create environment variables FOO_USR and FOO_PWD On Apr 6, 2017 8:42 AM, "Idan Adar" wrote: Perhaps Robert (CCed) can help? On Thursday, April 6, 2017 at 6:26:00 PM UTC+3, Idan Adar wrote: > > In declarative pipeline, one can use credentials() instead > of withCred

Re: Valid use of environment directive

2017-04-06 Thread Idan Adar
script { } it is... :/ On Thursday, April 6, 2017 at 7:39:27 PM UTC+3, Andrew Bayer wrote: > > No, that's definitely not intended to work that way, and it probably won't > work. > > On Apr 6, 2017 9:09 AM, "Idan Adar" > wrote: > >> Yes, that's how I do it in my actual Jenkinsfile, but I thought

Re: How to replace withCredentials([usernamePassword ... with credentials(...)

2017-04-06 Thread Idan Adar
The following resulted in an exception during runtime. groovy.lang.MissingPropertyException: No such property: UP_PWD for class: groovy.lang.Binding at groovy.lang.Binding.getVariable(Binding.java:63) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGet

Re: Invoke Windows Installer in Interactive mode Through Jenkins

2017-04-06 Thread Bangar Milind
Thanks Sebastian for the pointer.. We are using Powershell remote session using WinRM service and then trying to run the installation interactively. We tried with the solution provided by Benjamin in earlier post ad are able to install interactively. However, require a user session available.

Re: How to replace withCredentials([usernamePassword ... with credentials(...)

2017-04-06 Thread Idan Adar
There's a missing ' below, just a copy/paste mistake. The error still happens, and also with a different credential, the same one used for the checkout... so I know 100% that the values in it are valid and working... but it fails with that _PWD... On Thursday, April 6, 2017 at 9:05:27 PM UTC+3,

Re: How to replace withCredentials([usernamePassword ... with credentials(...)

2017-04-06 Thread Idan Adar
The problem was that it's not "PWD" but "PSW"... On Thursday, April 6, 2017 at 6:26:00 PM UTC+3, Idan Adar wrote: > > In declarative pipeline, one can use credentials() instead > of withCredentials, but I am not really sure how this works. In general, > lots of examples are missing... > > Assumi

Re: After uninstalling Blue Ocean 1.0, link to build in GitHub remains with /blue, leading to 404

2017-04-06 Thread Liam Newman
Sounds like there needs to be a setting for that. Please file an issue on https://issues.jenkins-ci.org . I just popped over to the gitter channel for blue ocean (https://gitter.im/jenkinsci/blueocean-plugin) to ask about this, too. On Thursday, April 6, 2017 at 8:46:11 AM UTC-7, Idan Adar

Re: After uninstalling Blue Ocean 1.0, link to build in GitHub remains with /blue, leading to 404

2017-04-06 Thread Idan Adar
When uninstalling, make sure to search for both "blue ocean" and "blueocean". There were a couple of additional plugins not uninstalled yet, one of which handled the redirect from github to /blue. On Thursday, April 6, 2017 at 10:13:04 PM UTC+3, Liam Newman wrote: > > > Sounds like there needs t

Re: Trouble using MarkupBuilder DSL within Pipeline DSL

2017-04-06 Thread niristotle okram
Seems like there is more shit apart from the security!!! The if you are using the java file writer, in a distributed env it doesn't work. I can generate some nice xml's on the master but not in the slave. What a shame! On Tue, Mar 21, 2017 at 4:01 PM, André Lanouette wrote: > Hello, > > Sorry to

Re: Converting a string parameter to a List of Maps

2017-04-06 Thread niristotle okram
Hey Bill: yes, got things to work with the input being parsed from a json. BUT only in the master. Things get messy and dark, when its a distributed env (master-slave) problem: jenkins workflow script doesn't like java api's. So IO things like // def fileReader = new BufferedReader( // ne

Re: Repository Connector Plugin: usage in the DSL scripts

2017-04-06 Thread remi . roques
Hi Ilija, Did you find a solution to your problem? I am interested in achieving the same thing as you! Regards, Remi On Friday, August 19, 2016 at 12:53:21 AM UTC+12, Ilija Rizovski wrote: > > Hi, > > I am using Repository Connector Plugin v1.1.3, and also using Job DSL > Plugin v1.50. > > T

Re: .Net Project Automated Build and Deployment Setup

2017-04-06 Thread suresh kumar
You can use the generated access token and select the username and password option instead of ssh key. -Suresh On Tuesday, April 4, 2017 at 11:20:51 PM UTC+5:30, Lokesh Swamy wrote: > > Suresh, > > Can you please walk me through how to setup a SSH with private key in TFS > plugin ? > > I trie

Re: mail notification

2017-04-06 Thread suresh kumar
I think you have configured smtp settings Email Notification Plugin in Jenkins configuration. But in your post build actions you added a step Editable Email Notification. This Editable Email Notification has a different section in Jenkins configuration page, check for Email Extension and enter

Re: Xvnc Plugin Password Issue (already ran as hudson usr)

2017-04-06 Thread Ha Thuy, Suesi Tran
have you found the solution? On Sunday, April 24, 2011 at 5:15:17 AM UTC+8, Dave wrote: > > Quick overview, I installed the Hudson Xvnc plugin as suggested by > https://wiki.jenkins-ci.org/display/JENKINS/Xvnc+Plugin on a Fedora > instance. Then I logged in as hudson on the device, ran vncserver

Re: StackOverFlow with pipeline script

2017-04-06 Thread Matej Švec
I have the same problem with Multibranch Pipeline. Tried to update to the latest version 2.53, plugins updated as well - same results. When a new branch is pushed (to Git), the job is triggered and failes with StackOverflowError. It is sometimes possible to get it running after a few clicks on "

Delete workspace on slave

2017-04-06 Thread Romaric Crailox
Hello, I do not know if it's normal or a Jenkins error, but I have a job with configuration matrix to perform build on 2 computer. I have "Delete workspace before build starts" option checked on this job. Unfortunately, workspace is delete only on "master" node, that is node where main job (jo