Re: Can Jenkins redirect HTTP requests to HTTPS?
I guess the native Jenkins server is Winstone, not Jetty, and it doesn't look like there's a way to do this there. It's sounding like I will need an nginx redirect. On Friday, March 6, 2015 at 3:46:35 PM UTC-8, Owen B. Mehegan wrote: I'm running Jenkins 1.596.1 on Linux, using the built-in Jetty server. I have it serving HTTP and HTTPS successfully, and now I'm trying to figure out a way to redirect all HTTP requests to HTTPS. I've searched for Jetty-specific ways to do this, but the answers I've found don't really mesh with the Jenkins configuration, as far as I can see. Can anyone suggest a way to do this? -- 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/b049d866-ba37-4a79-a742-f738b25cf9a1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [nodejs-plugin] permission denied
Make sure the temp folder is not on a volume mounted with noexec flag. On 06.03.2015, at 19:12, John Lemp j...@graavy.com wrote: I have installed the the nodejs plugin 0.2.1 on Jenkins 1.575 but it fails trying to (I assume) install nodejs. java.io.IOException : Cannot run program /var/tmp/jenkins/hudson6795453609505606096.js (in directory /data/jenkins/workspace/testweb-develop): java.io.IOException: error=13, Permission denied at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.init(Proc.java:244) at hudson.Proc$LocalProc.init(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:780) at jenkins.plugins.nodejs.tools.DecoratedLauncher.launch(DecoratedLauncher.java:49) at jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper$2.launch(NpmPackagesBuildWrapper.java:88) at hudson.Launcher$ProcStarter.start(Launcher.java:360) at hudson.Launcher$ProcStarter.join(Launcher.java:367) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:84) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:42) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1740) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) Caused by: java.io.IOException : java.io.IOException: error=13, Permission denied at java.lang.UNIXProcess.init(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 18 more Build step 'Execute NodeJS script' marked build as failure The build simply has: var sys = require('sys'); sys.puts('NodeJS Test'); sys.puts('***'); sys.puts('helloworld'); The odd think is that the plugin screenshot shows a dropdown list of available node js installations for the option Install from nodejs.org but on my server it just has a text input. I have tried change the -Djava.io.tmpdir=/var/tmp/jenkins and chown'ing it to the jenkins user but still get a permission denied. The file, hudson6795453609505606096.js seems to get cleaned up as I cannot see the file after the build fails. Any ideas on how to further troubleshoot? -- 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/aa767d3f-10f3-4e4e-8421-a63aa900e2f5%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/88B06AA2-38D8-45D5-898E-33D62E1019B4%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
[workflow-plugin] How to assign output of a sh([script:])
When writing a workflow script, what is the best way to assign the output of a shell script to a variable in groovy? For this example, the output is a number that I intend to pass as a parameter to another job. *Example Code:* node('Builder') { dir(/diretory/to/git/REPO) { GitCommitCountValue=sh([script: git rev-list HEAD --count]) print Git Commit Count = ${GitCommitCountValue} } } *Output:* [REPO] Running shell script + git rev-list HEAD --count 99 Running: Print Message GIT COMMIT COUNT = 0 Thank you in advance, Vizionz -- 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/79c1471d-f7b9-4202-a8a3-3fb55d268f52%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
FYI: Google Apps SSO no longer supported in Jenkins OpenID plugin
Last year, Google announced that they will be shutting down their OpenID 2.0 authentication endpoint in April of 2015. This will break the Google Apps SSO feature of the Jenkins OpenID plugin. If you are currently using that feature, you should switch to using the new Google Login plugin instead. For more, see: http://jenkins-ci.org/content/google-apps-sso-no-longer-supported-jenkins-openid-plugin -- 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/f28ca9e3-6752-4a1c-8856-88926290e72e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Can Jenkins redirect HTTP requests to HTTPS?
I'm running Jenkins 1.596.1 on Linux, using the built-in Jetty server. I have it serving HTTP and HTTPS successfully, and now I'm trying to figure out a way to redirect all HTTP requests to HTTPS. I've searched for Jetty-specific ways to do this, but the answers I've found don't really mesh with the Jenkins configuration, as far as I can see. Can anyone suggest a way to do this? -- 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/7434f4b3-7f49-4eb8-abe2-e05027f97f55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [workflow-plugin] How to assign output of a sh([script:])
Two minutes after posting... https://issues.jenkins-ci.org/browse/JENKINS-26133 Looks as though there is no easy way to return output/status from a shell script instance. -- 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/10efee2b-70e4-47a9-84c5-acce99a1c8cc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[workflow-plugin] [script-security-plugin] binding variable is not available on sandboxed runs
Having this simple workflow definition: node { binding['MYVAR'] = myvalue echo ${binding.getVariables()} } If ran on a non-sandboxed environment, the output is nice: [steps:org.jenkinsci.plugins.workflow.cps.DSL@545c26e4, MYVAR:myvalue] If ran on a sandboxed environment we get an error: No such property: binding for class: groovy.lang.Binding Could this be a similar case as JENKINS-25914 https://issues.jenkins-ci.org/browse/JENKINS-25914? That issue wasw closed on commit 0ee3e93 https://github.com/jenkinsci/workflow-plugin/commit/0ee3e93e78013326cb49f800055c21f6044e6ce1 and related to commit 78563c4 https://github.com/jenkinsci/script-security-plugin/commit/78563c4f8b606998c69057496813f733c1eb1581. Regards -- 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/f5235fd8-e586-48dc-9da5-a9dd19908d40%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: I cant run my calabash-ios successfully on Jenkins. complaining of Ruby.Framework
Thanks for your help but can you help me give guidelines on how i will implement your suggested steps please i am new to these pleas help. thanks On Friday, March 6, 2015 at 8:38:57 AM UTC, Björn Pedersen wrote: Hi, my guess is that your rvm setup is not correctly loaded when jenkins logs onto your node. Make sure to: a) configure rvm in the right shell (usally /bin/sh for jenkins) b) ensure that the configuration is loaded in non-interactive shells bash e.g. loads /etc/profile, ~/.bash_profile, ~/.bash_login, and ~/.profile for interactive shells, but these are not read for non-interactive shells (see man bash for more details) Björn -- 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/db06f6b8-d6c7-4dbc-ab03-a7fc5dd25c7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[nodejs-plugin] permission denied
I have installed the the nodejs plugin 0.2.1 on Jenkins 1.575 but it fails trying to (I assume) install nodejs. java.io.IOException http://stacktrace.jenkins-ci.org/search?query=java.io.IOException: Cannot run program /var/tmp/jenkins/hudson6795453609505606096.js (in directory /data/jenkins/workspace/testweb-develop): java.io.IOException: error=13, Permission denied at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessBuilder.startentity=method at hudson.Proc$LocalProc.init(Proc.java:244) http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3Eentity=method at hudson.Proc$LocalProc.init(Proc.java:216) http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3Eentity=method at hudson.Launcher$LocalLauncher.launch(Launcher.java:780) http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$LocalLauncher.launchentity=method at jenkins.plugins.nodejs.tools.DecoratedLauncher.launch(DecoratedLauncher.java:49) http://stacktrace.jenkins-ci.org/search/?query=jenkins.plugins.nodejs.tools.DecoratedLauncher.launchentity=method at jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper$2.launch(NpmPackagesBuildWrapper.java:88) http://stacktrace.jenkins-ci.org/search/?query=jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper$2.launchentity=method at hudson.Launcher$ProcStarter.start(Launcher.java:360) http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$ProcStarter.startentity=method at hudson.Launcher$ProcStarter.join(Launcher.java:367) http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$ProcStarter.joinentity=method at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:84) http://stacktrace.jenkins-ci.org/search/?query=jenkins.plugins.nodejs.NodeJsCommandInterpreter.performentity=method at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:42) http://stacktrace.jenkins-ci.org/search/?query=jenkins.plugins.nodejs.NodeJsCommandInterpreter.performentity=method at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.performentity=method at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performentity=method at hudson.model.Build$BuildExecution.build(Build.java:199) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.buildentity=method at hudson.model.Build$BuildExecution.doRun(Build.java:160) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.doRunentity=method at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method at hudson.model.Run.execute(Run.java:1740) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.runentity=method at hudson.model.ResourceController.execute(ResourceController.java:88) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method at hudson.model.Executor.run(Executor.java:234) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method Caused by: java.io.IOException http://stacktrace.jenkins-ci.org/search?query=java.io.IOException: java.io.IOException: error=13, Permission denied at java.lang.UNIXProcess.init(UNIXProcess.java:148) http://stacktrace.jenkins-ci.org/search/?query=java.lang.UNIXProcess.%3Cinit%3Eentity=method at java.lang.ProcessImpl.start(ProcessImpl.java:65) http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessImpl.startentity=method at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessBuilder.startentity=method ... 18 more Build step 'Execute NodeJS script' marked build as failure The build simply has: var sys = require('sys'); sys.puts('NodeJS Test'); sys.puts('***'); sys.puts('helloworld'); The odd think is that the plugin screenshot shows a dropdown list of available node js installations for the option Install from nodejs.org but on my server it just has a text input. I have tried change the -Djava.io.tmpdir=/var/tmp/jenkins and chown'ing it to the jenkins user but still get a permission denied. The file, hudson6795453609505606096.js seems to get cleaned up as I cannot see the file after the build fails.
cucumber-plugin added build ste[p disappearing
Hi all I am a novice here and had been using rake to run cucumber jobs , but now I have the cucumber-plugin installed. It looks straight forward enough however after i fill in the path to cucumber tests and pres apply or save (usually I apply then save) the build step disapears? what am i doing wrong find attached an image https://lh6.googleusercontent.com/-DRROGBHgbL0/VPoCC99wWpI/ADA/4qJOCPp03HE/s1600/Selection_005.png -- 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/6ee22415-beff-4050-a838-578fb9fcffd0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Remote trigger job between masters with file upload/transfer
Hey, looking for a method to remotely trigger a Jenkins job from one master to another, with file upload/transfer ... and wait for response (success or failure). I'm aware there's the plugin https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Remote+Trigger+Plugin however, that doesn't seem to support file upload. I'm thinking an alternative might be to upload to intermediary location then trigger the job; however, wondering if other possibilities ... probably a bunch of script with curl calls might work, but not exactly eloquent. I feel like something simple can be done ... any ideas? -- 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/a2693852-bd78-46c7-aae9-fd034b309fd8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins won't start up: IndexOutOfBoundsException: Index: 0, Size: 0
Please provide the JDK version you're using, Jenkins version, ... That exception reminds me of something: would you by chance be using JDK 8 and an old version of Jenkins like 1.565 or something? 2015-03-06 2:26 GMT+01:00 Edmond Chhung echhu...@gmail.com: Hi Guys, I just updated some plugins (I dont know what they were) from the jenkins gui and I restarted. Then either the error came up or something similar. I had a look at a few blog posts and they said to delete the jpi files and folders from plugins so jenkins would re grab it. I did this and it still comes up with this error. I have no idea how to fix this and I need this up and running soon. Any help would be greatly appreciated. I am totally stuck Thanks hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.WebAppMain$3.run(WebAppMain.java:237) Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269) at jenkins.InitReactorRunner.run(InitReactorRunner.java:44) at jenkins.model.Jenkins.executeReactor(Jenkins.java:914) at jenkins.model.Jenkins.init(Jenkins.java:813) at hudson.model.Hudson.init(Hudson.java:83) at hudson.model.Hudson.init(Hudson.java:79) at hudson.WebAppMain$3.run(WebAppMain.java:225) Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:903) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105) ... 8 more Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at hudson.ExtensionList.get(ExtensionList.java:158) at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1257) at hudson.maven.PluginImpl.init(PluginImpl.java:58) ... 13 more -- 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/0321d83a-febf-479a-8c47-7f1603c5305b%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/0321d83a-febf-479a-8c47-7f1603c5305b%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! nbsp;! -- 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/CANWgJS7APp8t7ybD%2BhwAFqS_WxvHkAY6qMWLqZ1BxNOykWr9Tw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: I cant run my calabash-ios successfully on Jenkins. complaining of Ruby.Framework
Hi, my guess is that your rvm setup is not correctly loaded when jenkins logs onto your node. Make sure to: a) configure rvm in the right shell (usally /bin/sh for jenkins) b) ensure that the configuration is loaded in non-interactive shells bash e.g. loads /etc/profile, ~/.bash_profile, ~/.bash_login, and ~/.profile for interactive shells, but these are not read for non-interactive shells (see man bash for more details) Björn -- 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/cbc1f0cd-d4e6-4a29-9bae-018d4d95d866%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.