Jenkins

I'm getting JellyException: Could not parse Jelly script : null

南笙酒味 提交于 2021-01-28 02:04:01
问题 I'm trying to configure some features in Jenkins for our project. In the process of configuring Editable Email Notification , I have created a new jelly script file in $JENKINS_HOME/email-templates folder as shown here and accessing it in Jenkins config like this When I build the job, with these setting, I'm getting email with the content "JellyException: Could not parse Jelly script : null" Thanks in advance!! 回答1: I faced a similar issue after I updated my Jenkins installation. I used the

Jenkins : Trigger Single Downstream job based on multiple upstream job

有些话、适合烂在心里 提交于 2021-01-28 02:02:18
问题 I would like to build a Pipeline in Jenkins where result based on multiple upstream jobs should trigger a single downstream job. For ex: Job 1 --> Job 2 --> Job 5 --> Job 6 Job 3 --> Job 4 --> Job 1: when a new piece of code is committed to Git production it should trigger Jobs 2,3 and 4 (this part I was able to run run using Build Other jobs option in Post Build Action; although any suggestion to improve this is also greatly appreciated). Job 2,3 and 4 are regressions to be run on different

No closing tags while building xml file with MarkupBuilder

倾然丶 夕夏残阳落幕 提交于 2021-01-28 01:55:08
问题 I want to use Groovy in my Jenkins-Pipeline-Job to build a Statuslist of my Jenkins Slaves and the installed nodes. Therefore I have some lists which should be displayed in xml. While testing with IntelliJ i wrote the following code. import groovy.xml.MarkupBuilder def listNodeNames = [] listNodeNames << 'SLAVE1_NODE_1' listNodeNames << 'SLAVE1_NODE_2' listNodeNames << 'SLAVE2_NODE_1' listNodeNames << 'SLAVE2_NODE_2' def listComputerNames = [] listComputerNames << 'SLAVE1' listComputerNames <

Cross-platform scripting with Jenkins

萝らか妹 提交于 2021-01-28 00:38:40
问题 I use Jenkins a lot within our organization, for building and deploying projects. I have a set of bash scripts fine-tuned to be modular and reusable for multiple projects. These are triggered by Jenkins during deploy jobs. The problem comes when the deployment environment changes from Linux to Windows. The bash scripts are no longer an option (installing cygwin on multiple/random deployment machines is also not an option). I could rewrite all the bash scripts in batch, but that would result

How to persist Properties in jenkins pipeline?

南楼画角 提交于 2021-01-27 23:11:14
问题 In my jenkins pipeline I am working with properties stored in file. I can read properties from file and add new items to the map using this code, but I do not understand how to persist my changes. node('hozuki-best-girl') { def propertiesPath = "${env.hozuki_properties}" def props = readProperties file: propertiesPath props['versionCode'] = 100500 } What should I do in order to persist my changes? There is no writeProperties method here https://jenkins.io/doc/pipeline/steps/pipeline-utility

Invalid parameter value for redirect_uri: Missing scheme

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-27 22:54:40
问题 I have hosted Jenkins on Ubuntu 14.04 server. Jenkins version is 2.46 . I am applying Google authentication on Jenkins. For this I am using Google Login Plugin of Jenkins with version 1.3 . I have created Client ID and Secret ID through Google Developer Console. I created it using this tutorial. So while creating credentials, I entered following things: Name: Web Client 1 Authorized JavaScript origins: http://jenkins.******.com Authorized redirect URIs: http://jenkins.******.com/securityRealm

Start android emulator adb from Jenkins in windows (run instrumented tests, emulator does not appear)

元气小坏坏 提交于 2021-01-27 20:53:47
问题 I would like to start emulator from Jenkins to test Android app. This is my setup of the project in jenkins and console output: When I tried Jenkins android emulator plugin with existing emulator device and his name, setup and output is here: The build is successful, but I cant see the running emulator when testing is running. Strange thing of these two options is, that when I start the command line and type these two commands, the emulator is always shown and it is running normally. But from

Jenkins TFS plugin throws NumberFormatException

╄→尐↘猪︶ㄣ 提交于 2021-01-27 20:32:26
问题 When I do a poll from Visual Studio Online using the Jenkin TFS Plugin I get the following message and exception. I use TEE-CLC on Ubuntu 12.10. No history entries were found for the item and version combination specified. FATAL: For input string: "" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:200)

How to copy artifacts from upstream project in Jenkins?

不羁岁月 提交于 2021-01-27 20:12:01
问题 I have two upstream projects(Pro1, Pro2). Both of the upstream projects archive artifacts. I want to create one downstream projects to copy artifacts from the upstream project who trigger the downstream project. For example, if the downstream is triggered by Pro1 , then it will copy the artifacts from Pro1 not Pro2 . In Jenkins, I can configure a project to copy artifacts from other projects but I have to specify the other project name. How can I specify a runtime project name in this case?

MSDeploy throwing MissingMethodException on EventWriteVerbose when trying to deploy package to IIS

半世苍凉 提交于 2021-01-27 19:42:28
问题 I am using Jenkins to build and package an ASP.NET project. Everything works well up until I attempt to run the <ProjectName>.deploy.cmd file that is output with the packaging process This error is output whether I run the deploy.cmd or run msdeploy.exe directly The missing method, apparently, is Microsoft.Web.Deployment.Tracing.WebDeployEventWriter.EventWriteVerbose(System.String, System.String, System.String) The full output is: Unhandled Exception: System.MissingMethodException: Method not