build-triggers

Azure DevOps CI pipeline for master being triggered by changes in branch and vice versa

徘徊边缘 提交于 2021-01-23 06:51:11
问题 I have a CI build trigger setup for a repo as follows: trigger: - master I have a branch of the same repo that I would like to have it's own pipeline. In the pipeline.yml for the branch I have: trigger: - ops-workshop/ms-lab01 However, if I commit changes to my branch, builds are triggered for both the master and branch pipelines. Committing to master also triggers the pipeline for the branch (which it shouldn't). I have tried using the branches node to exclude master but it doesn't seem to

How to pass API parameters to GCP cloud build triggers

有些话、适合烂在心里 提交于 2020-04-30 09:10:28
问题 I have a large set of GCP Cloud Build Triggers that I invoke via a Cloud scheduler, all running fine. Now I want to invoke these triggers by an external API call and pass them dynamic parameters that vary in values and number of parameters. I was able to start a trigger by running an API request but any JSON parameters in the API request that I sent were ignored. Google talks about substitution parameters at https://cloud.google.com/cloud-build/docs/configuring-builds/substitute-variable

How to pass API parameters to GCP cloud build triggers

与世无争的帅哥 提交于 2020-04-30 09:08:14
问题 I have a large set of GCP Cloud Build Triggers that I invoke via a Cloud scheduler, all running fine. Now I want to invoke these triggers by an external API call and pass them dynamic parameters that vary in values and number of parameters. I was able to start a trigger by running an API request but any JSON parameters in the API request that I sent were ignored. Google talks about substitution parameters at https://cloud.google.com/cloud-build/docs/configuring-builds/substitute-variable

Update build definition using Azure DevOps REST API in PowerShell

点点圈 提交于 2020-03-21 06:45:08
问题 I'm attempting to update my build definitions in Azure DevOps using the REST API via a PowerShell script... $header = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":$($personalAccessToken)"))} $definitions = Invoke-RestMethod -Uri "https://devops.domain.com/Collection/Project/_apis/build/definitions" -Method GET -Header $header $branchNames = 'master', 'feature' ForEach ($definition in $definitions.value) { $definition | Add-Member -NotePropertyName

Hudson build on URL token

时光怂恿深爱的人放手 提交于 2019-12-10 10:12:31
问题 I configured a hudson instance and have created jobs. While creating builds, I was able to see this option "Trigger the build by accessing this URL + SecretTOKEN" option. Now, I am unable to see that for any new jobs I create. Am I missing some setting or a configuration? The only change I made was running the servlet container from Root to a regular user. 回答1: In my Hudson (1.349) when creating a new job, there's an option under Build Triggers called Trigger Builds Remotely (e.g. from

How do I dynamically trigger downstream builds in jenkins?

落花浮王杯 提交于 2019-11-27 14:44:54
问题 We want to dynamically trigger integration tests in different downstream builds in jenkins. We have a parametrized integration test project that takes a test name as a parameter. We dynamically determine our test names from the git repo. We have a parent project that uses jenkins-cli to start a build of the integration project for each test found in the source code. The parent project and integration project are related via matching fingerprints. The problem with this approach is that the