Jenkins

Jenkins git commit for specific branch triggers build jobs for other branches too

心不动则不痛 提交于 2021-02-18 11:48:03
问题 We have a internal enterprise Github repo, and i have multiple feature branches. I am facing a issue with triggering a build on a specific branch. I have configured jobs for each of the feature branches. There is one jenkins job for one feature branch. The first time i commit a code, it also triggers builds for jobs with other branches. Steps to reproduce the problem: 1.We have a internal Github for enterprise. For my repo, i have setup webhook for github as below Settings -> Webhooks &

How to cache local Maven repository using Docker with Pipelines?

混江龙づ霸主 提交于 2021-02-18 11:24:31
问题 I want to run my Maven builds in a Docker container. I don't want to upload all depenedencies with every build, so I tried to mount host's local Maven repository as documented at Using Docker with Pipeline: Caching data for containers [...] Pipeline supports adding custom arguments which are passed to Docker, allowing users to specify custom Docker Volumes to mount, which can be used for caching data on the agent between Pipeline runs. The following example will cache ~/.m2 between Pipeline

Jenkins json REST api with CORS request using jQuery

给你一囗甜甜゛ 提交于 2021-02-18 08:13:55
问题 I'm trying to use the Jenkins json API and cannot get the authentication to work. setup: Jenkins security: Jenkin’s own user database access: Matrix-gebaseerde beveiliging CORS via Jenkins CORS plugin using username/api token of a registered user tried: var username = "username"; var apiToken = "apiToken"; // username / api-token on url (basic authentication) $.ajax({ url: "http://"+username+":"+apiToken+"@host:port/job/test/api/json", method: "GET" }); // username / api-token supplied using

Easiest way to run Selenium tests in a Docker container over Jenkins CI

你。 提交于 2021-02-18 07:28:51
问题 I want to execute my automated tests, written in Nightwatch-Cucumber over a Jenkins CI in a Docker container. I have a Docker image that I want to use for it. This is what I want to do in more detail. Start tests over Jenkins CI job On the same machine the Docker image is loaded and the related Docker container will start. This container based on a Unix OS. Also, some configuration in Docker container will be executed. Tests will be executed (from local or remote) in a headless mode via xvfb

Triggering a multibranch pipeline job from an other multibranch pipeline

空扰寡人 提交于 2021-02-18 06:42:40
问题 I have a scenario where but I have 2 projects (A and B), both are configured in Jenkins with multibranch pipeline jobs, problem is that Project B depends on Project A. So I find that some times when I check in code in Project A, I also need to build ProjectB once A was built. Now before I started investigating pipeline builds, I'd have a job per branch and then trigger in Jenkins the appropriate job for Project B for the appropriate branch. What I'd like to set up in a Jenkinsfile so that

Visualize Jenkins pipeline or multibranch pipeline jobs

允我心安 提交于 2021-02-17 22:12:39
问题 I have one Pipeline job for each component in my Jenkins 2.0. All of them consist of many stages (build, UT, IT etc.), so they're working as a pipeline for a component. The components are depending on each other in a specified order, so I used "Build after other projects are built" (I also tried JobFanIn Plugin) to trigger these "mini-pipelines" after each other. This works like a pipeline of "mini pipelines" I'd like to visualize the relationship between the jobs. For this purpose I've found

Visualize Jenkins pipeline or multibranch pipeline jobs

三世轮回 提交于 2021-02-17 22:11:43
问题 I have one Pipeline job for each component in my Jenkins 2.0. All of them consist of many stages (build, UT, IT etc.), so they're working as a pipeline for a component. The components are depending on each other in a specified order, so I used "Build after other projects are built" (I also tried JobFanIn Plugin) to trigger these "mini-pipelines" after each other. This works like a pipeline of "mini pipelines" I'd like to visualize the relationship between the jobs. For this purpose I've found

Visualize Jenkins pipeline or multibranch pipeline jobs

不问归期 提交于 2021-02-17 22:10:18
问题 I have one Pipeline job for each component in my Jenkins 2.0. All of them consist of many stages (build, UT, IT etc.), so they're working as a pipeline for a component. The components are depending on each other in a specified order, so I used "Build after other projects are built" (I also tried JobFanIn Plugin) to trigger these "mini-pipelines" after each other. This works like a pipeline of "mini pipelines" I'd like to visualize the relationship between the jobs. For this purpose I've found

pass parameter from jenkins parameterized build to windows batch command

我与影子孤独终老i 提交于 2021-02-17 21:29:52
问题 I am starting to use Jenkins, which is a really great tool. We are using parameterized build, we define parameter such as branch name ${Branch} (e.g. dev, release, main etc). In the build config, I can add a windows batch command, is there a way I can pass down these parameters to the batch command? I tried to pass like "%${Branch}%" or "%Branch%", but seems not working. Can anyone help? Many Thanks 回答1: Using Parameterized Build , you need to define parameters. The value of these will be