pipeline-trigger | trigger allows you to trigger and wait for the results | BPM library
kandi X-RAY | pipeline-trigger Summary
kandi X-RAY | pipeline-trigger Summary
Pipeline-trigger allows you to trigger and wait for the results of another GitLab pipeline
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pipeline-trigger
pipeline-trigger Key Features
pipeline-trigger Examples and Code Snippets
Community Discussions
Trending Discussions on pipeline-trigger
QUESTION
We have more number of common upstream pipelines - pipleline-a, pipleline-b, pipeline-c, pipeline-d … each in its own repository - repository-a, repository-b, repository-c, repository-d… My target pipeline, say pipeline-y in repository-y, has a dependency on these upstream pipelines artifacts and the target pipeline needs to build when there is a change to any of the upstream libraries and the corresponding upstream pipeline builds successfully. In other words, target pipeline-y needs to be triggered if any of the upstream pipelines completed successfully due to changes in them (CI triggers for upstream libraries work fine in their own pipelines).
We currently achieved this, using the resources pipelines trigger in the target pipeline-y, as below:
Upstream Pipeline - pipeline-a.yml
...ANSWER
Answered 2022-Mar-22 at 11:17It's not possible to dynamically specify resources in YAML.
A suggestion could be to use REST API hooks when new pipelines are added. Then trigger a program that generates new YAML for pipeline-y.yml.
QUESTION
I have a gitlab-ci.yml that creates and trigger a child .yml
...ANSWER
Answered 2021-Dec-23 at 14:57Turned out the problem was the encoding of the powershell-output. Default encoding from powershell 5 is UFT16BOM and my reencoding to UTF8 resulted in UFT8BOM wich gitlab can´t handle properly. My sollution was to encode in ASCII. What I can´t explain is why it was able to interpret the first job correctly, I thought that encodeing would result in an all or nothing outcome. Maybe the CRLF-CRLF after the first job caused the errror
QUESTION
I have two repos on my Azure DevOps project. One for the Cloud Infrastructure deployment and another that contains my application code.
I have a YAML pipeline that is triggered after any of those repos build pipeline finishes. The pipeline looks a bit like this like this:
...ANSWER
Answered 2021-Dec-01 at 21:14Have a look at Pipeline resource variables
In each run, the metadata for a pipeline resource is available to all jobs in the form of predefined variables. The is the identifier that you gave for your pipeline resource. Pipeline resources variables are only available at runtime.
There are also a number of predefined variables called Build.TriggeredBy.*
, amongst them Build.TriggeredBy.DefinitionName
, however documentation suggests that for yaml pipeline with pipeline triggers the resource variables should be used instead
If the build was triggered by another build, then this variable is set to the name of the triggering build pipeline. In Classic pipelines, this variable is triggered by a build completion trigger.
This variable is agent-scoped, and can be used as an environment variable in a script and as a parameter in a build task, but not as part of the build number or as a version control tag.
If you are triggering a YAML pipeline using resources, you should use the resources variables instead.
QUESTION
Im new in Azure DevOps and want to trigger a pipeline by another pipeline.
i follow this documentation
the following section is described there:
...ANSWER
Answered 2021-Jul-01 at 16:00
- pipeline: securitylib specifies the name of the pipeline resource, and is used when referring to the pipeline resource from other parts of the pipeline, such as pipeline resource variables.
is a name for the pipeline resource. This is not pipeline name in Azure Devops. It it is like
QUESTION
I have two pipelines - one for CI and the other for CD. Want to trigger the CD pipeline after CI pipeline has completely finished. After setting up the triggers (through YAML), both of my pipelines get triggered together so CD finishes even before CI has completed.
How can I trigger the CD pipeline, only after the CI has finished off?
My CI pipeline is as follows:
...ANSWER
Answered 2021-Jun-07 at 10:18One way would be to create a tag at the end of the CI and CD can be triggered by this tag.
ADO CI pipeline sample code :
QUESTION
In our Azure DevOps Server 2019 we want to trigger a build pipeline on completion of another build pipeline. The triggered build should use the same source branch the triggering build used.
According to the documentation this does not work with classic builds or the classic trigger definition, but in the YAML definition for the triggered build:
build.yaml:
...ANSWER
Answered 2020-Jun-22 at 08:44Updates are made every few weeks to the cloud-hosted version, Azure DevOps Services. These updates are then rolled up and made available through quarterly updates to the on-premises Azure DevOps Server and TFS.So, all features are release in Azure DevOps Service first.
A timeline of feature released and those planned in the feature release can be found at here-- Azure DevOps Feature Timeline
You could choose to directly use cloud version Azure DevOps Service instead or monitor latest update on above Feature Timeline with Azure DevOps Server. Sorry for any inconvenience.
QUESTION
Is it possible to create a pipeline in Azure DevOps that simply runs two or more independent pipelines (in parallel or in series) and does nothing else?
I have an application consisting of five independent microservices, each of which can be built and deployed separately via its individual build pipeline (YAML). However, it is often convenient for us to build and deploy them all together; e.g., when tagging the resulting artefacts as part of a new release. I've scoured the official docs but found nothing on how to do this. Pipeline triggers don't help me because I need to keep these pipelines decoupled, as they are frequently run individually. What I need is something like this (wishful pseudo-code):
...ANSWER
Answered 2020-Apr-29 at 19:45Assuming your pipelines are all in the same project, and assuming you're using Windows-based build agents whose services are running under a Windows account that has permission to access your project in Azure DevOps (as opposed to LOCAL SYSTEM et cetera), you can run the script below as a build task for the purpose of triggering other builds, which could then trigger releases.
QUESTION
Requirement
So, there is some newish functionality in Azure DevOps which allows pipelines to trigger other pipelines and is documented here: https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml#pipeline-triggers-1 It sounds great, apart from the fact I can't get the behaviour I need. I want 2 pipelines in the same repository:
- Pipeline A: is only triggered by multiple other pipelines outside of its own repo, but in the same project. As a result of being triggered it makes a change to its own repo and therefore triggers pipeline B.
- Pipleline B: is only triggered by changes to its own repo and when triggered goes ahead and does whatever it needs to do
Pipeline A Syntax
...ANSWER
Answered 2020-Jan-07 at 23:01Working Solution
Because all of my builds are centralised in one pipeline template, I changed this template to trigger my pipeline A on successful publishing of an artifact. Here's the pipeline trigger code which is pretty much verbatim from (https://docs.microsoft.com/en-us/azure/devops/cli/azure-devops-cli-in-yaml?view=azure-devops), apart from the last couple of steps:
QUESTION
I have repository on local GitLab server of my organization and want to trigger build pipeline that then will trigger release pipeline and publish to staging/production VMs.
I've read a lot of articles at microsoft docs, SO and tons of blogs that you can trigger pipeline by tags providing branch filter like refs/tags/v*
. YAML configuration has additional section special for tags, however YAML is not supported for git repos that are connected as "Other git".
And that tag trigger just never works. After I set up trigger UI shows me just "v*", so it understands that refs/tags has special meaning. I can run pipeline manually specifying exact tag, like refs/tags/v1.0-test
, and it works. But never launches automatically. Branch triggers work without problems.
What I've already tried:
- set include filter for
refs/tags/v*
- doesn't work - set include filter for
refs/tags/exacttagname
- doesn't work - set include filter for
refs/tags/v*
and another one formaster
- triggers only for master - set include filter for
refs/tags/v*
, for*
and exclude filters forrefs/heads/*
andrefs/remotes/*
- doesn't work
I tried pushing commit, then pushing tag. Tried pushing commit and tag in one requiest with git push ---follow-tags
. Tried pushing tags for older commits. Nothing of that works.
This issue about the same problem was resolved on azure side previous summer, however all comments where about GitHub integrations. So maybe it's still broken for "other git" or smth else.
Any help?
...ANSWER
Answered 2020-Mar-20 at 16:51I tested and got the same result, tags triggers for other git doesnot work. You can submit a feature request(click suggest a feature and choose Azure devops) for supporting tag triggers for gitlab repo to Micrsoft Development team. Please check this thread for example.
As workaround you can use multiple agent jobs to achieve above currently.
You can add another agent job before your original agent job to run a script task, And add dependency on it in your original agent job. The script task will check if there is tag associated to the current commit. If the tag exits, the script task will pass, and the following agent job will run. Or the script task fails and the following agent job will be skipped.
The detailed steps is as below:
QUESTION
Is it possible to trigger somehow Azure Pipelines with custom GitHub Pull Request comments (besides the standard ones)? We’ve found the following documentation suggesting to use webhook triggers but as far as I understand this feature isn’t yet implemented in Azure Pipelines, is it?
...ANSWER
Answered 2020-Feb-05 at 05:33Custom GitHub PR comment triggers for Azure Pipelines
Yes, you are right. The feature Incoming Webhook
should not yet implemented in Azure Pipelines at this time.
Now, Azure pipeline trigger only support the "standard" GitHub Pull Request comments, like /AzurePipelines run
or /AzurePipelines run
. So we could not use the custom GitHub PR comment trigger the Azure pipeline currently.
The workaround as Levi Lu answered in that post, but the limitation is that the pipeline still needs to be executed for each PR.
If above workaround not help you, you could add your request for this feature on our UserVoice site (https://developercommunity.visualstudio.com/content/idea/post.html?space=21 ), which is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps:
Hope this helps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pipeline-trigger
You can use pipeline-trigger like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page