jenkins-plugins

Browser Automations ( using Webdriver ) when running from Jenkins are running as Process but not visibl

妖精的绣舞 提交于 2020-01-11 10:46:09
问题 Details : - Developed a test automation framework using Webdriver and TestNG - Using ANT as triggering tool to drive browser automations. This is working fine, I could see Browser getting opened and see all the navigations - Setup Jenkins on my local & configured to invoke ANT - Clicked on Build Now link in the Job - Browser is not visible, instead running as a process...could see it in Windows Task Manager Any help / Inputs / Pointers is much appreciated!! 回答1: You are probably running

Jenkins set a badge as a pre-build step

£可爱£侵袭症+ 提交于 2020-01-11 05:55:55
问题 I'm not sure I have terminology quite correct here, so I will try to explain as best as possible. I use Jenkins to run our Java automation. There are lots of long-running (2-10 hours) jobs executing constantly against different versions of the product under test. I need a way to look quickly at the Build History box of a job, and see which job is testing which product version. I've used the Groovy Postbuild plugin successfully to add a badge (I think that is what it is) to the right of the

Build only the Git branch that has been pushed to

半世苍凉 提交于 2020-01-09 19:01:46
问题 I have a Jenkins job to build the master branch of my GitHub repo. It triggers nicely when I push a commit to master , and I'm very happy about it. I would also like to have a single Jenkins job that would build any other branch in this repository. I.e. whenever I push a commit to a branch (that is not master ), I'd like to have this Jenkins job to build that branch, and only that branch. Using the GitHub pull-request plugin requires me to create a pull-request, and merges my commit with

Build only the Git branch that has been pushed to

痴心易碎 提交于 2020-01-09 19:00:01
问题 I have a Jenkins job to build the master branch of my GitHub repo. It triggers nicely when I push a commit to master , and I'm very happy about it. I would also like to have a single Jenkins job that would build any other branch in this repository. I.e. whenever I push a commit to a branch (that is not master ), I'd like to have this Jenkins job to build that branch, and only that branch. Using the GitHub pull-request plugin requires me to create a pull-request, and merges my commit with

Jenkins inject environment variable

做~自己de王妃 提交于 2020-01-09 11:13:50
问题 In a Jenkins job I'm doing a couple of actions that reside in the pre-step build, such as executing a shell script. With the use of the Jenkins plugin "EnvInject" I want to inject environment variables into my maven build (Unit tests) so that those can be used inside my Java unit tests. Inside the shell script im doing something similar as: echo "ip=$IP" >> unit-test.properties While building Jenkins outputs the following: [EnvInject] - Injecting environment variables from a build step.

Jenkins inject environment variable

混江龙づ霸主 提交于 2020-01-09 11:11:35
问题 In a Jenkins job I'm doing a couple of actions that reside in the pre-step build, such as executing a shell script. With the use of the Jenkins plugin "EnvInject" I want to inject environment variables into my maven build (Unit tests) so that those can be used inside my Java unit tests. Inside the shell script im doing something similar as: echo "ip=$IP" >> unit-test.properties While building Jenkins outputs the following: [EnvInject] - Injecting environment variables from a build step.

Jenkins Artifactory plugin give Unexpected character when trying to upload large artifacts

怎甘沉沦 提交于 2020-01-07 02:59:11
问题 I use the Jenkins Artifactory plugin. Artifactory is installed beside Nginx server. Sometimes, Jenkins return an error on upload: [main] ERROR org.jfrog.build.extractor.maven.BuildInfoClientBuilder - Failed while reading the response from: PUT https://XXXX.XXX/XX-XXXXXXX-XXX/com/XXXX/XXXX/xxxxxxxx/xxxxxxx-api/1.0.0-SNAPSHOT/xxxxxxx-api-1.0.0-SNAPSHOT-jar-with-dependencies.jar;build.timestamp=1457104033410;build.name=xxxxxxx-build;build.number=75 HTTP/1.1 org.codehaus.jackson

How to export windows batch variables as build parameters to following steps in Jenkins?

给你一囗甜甜゛ 提交于 2020-01-06 23:49:53
问题 In Jenkins, is it possible to export windows batch variables as build parameters? I know using build parameters inside windows batch blocks is, I use it a lot. For example, I have a windows batch block that creates a variable, say A, like SET A="MyVar" Is it possible to use it in running MSBuild, passing it like it was a build parameter, in the (working) syntax of /p:AssemblyName=%A% or /p:AssemblyName=${A} ? Neither of these seem to work (my variable is always empty). Update : @Tuffwer

How to export windows batch variables as build parameters to following steps in Jenkins?

混江龙づ霸主 提交于 2020-01-06 23:49:11
问题 In Jenkins, is it possible to export windows batch variables as build parameters? I know using build parameters inside windows batch blocks is, I use it a lot. For example, I have a windows batch block that creates a variable, say A, like SET A="MyVar" Is it possible to use it in running MSBuild, passing it like it was a build parameter, in the (working) syntax of /p:AssemblyName=%A% or /p:AssemblyName=${A} ? Neither of these seem to work (my variable is always empty). Update : @Tuffwer

Jenkins jasmine-node command not found

别等时光非礼了梦想. 提交于 2020-01-06 11:34:28
问题 I am trying to configure Jenkins to be used for my team which works on node.js projects. We used jasmine-node for most of our projects. I have a jenkins instance managed by another group in the org which recognizes node and npm. I ran 'npm install -g jasmine-node' as one of the Jenkins job and the coonsole output says it is successfull: Building on master in workspace C:\.jenkins\workspace\ttm-closr > git rev-parse --is-inside-work-tree Fetching changes from the remote Git repository > git