Comments (3)
Hi @blag,
Scheduled pipelines are a change in structure, in that schedules are
not defined in config anymore, which has been problematic in all kinds
of ways. Instead they're defined within our platform via the this API
call, which includes the branch (or tag) to trigger the schedule on.
The only thing left to do in config is workflow filtering, which can
be done with pipeline values, as shown further along in that same
document.
Is there an existing way to filter on branch name? Maybe something
like:
This is not really related to scheduled pipelines due to the above,
but actually yes. The pipeline value you'll want to look at is
<< pipeline.git.branch >>
. We also have a full list of currently
available pipeline values in our docs.
I hope that answers your questions, but let me know if anything is
unclear.
from api-preview-docs.
Hey @sulami thanks for the response. I realize I misworded a few things in my issue, so I've tweaked a bit of the wording to be more clear what I'm referring to.
It would be great if the conversion examples included the branch filtering from the before examples. I have submitted PR #104 that includes examples for that, as well as fixing up a few small GFM syntax things.
I have been unable to find much documentation on the when
and unless
clauses in workflow filtering. If you can point me to more detailed documentation on that, I would appreciate it. Thank you!
from api-preview-docs.
I'll leave the scheduled pipelines docs bits to @h42zhu.
With regards to the when/unless clauses, the config reference has a good section on this. You should be able to adapt the branch filtering examples from there.
On a related note, @rosieyohannan / @thomasr8, I just realised the config reference doesn't list when
/unless
under <workflow_name>
as it should.
from api-preview-docs.
Related Issues (20)
- Conditions should allow operators HOT 1
- Retrying workflows
- Triggering a pipeline by tag doesn't trigger any workflows HOT 2
- List projects by organisation HOT 5
- Body parser is not tolerant of whitespace?? HOT 3
- Pipeline Parameters Ignored with API HOT 2
- Trigger workflow in different repo with same user HOT 1
- POST /pipeline Returns 201 When No Actual Workflow Is Triggered HOT 5
- Unable to access v2 APIs with project-specific API tokens HOT 3
- Cannot access job output HOT 2
- Unable to trigger pipeline to build forked Pull Request via V2 API, error message: *Branch not found*
- Add v1 deprecation to v1 docs
- Pipeline updated_at field not actually updating
- How to pass executor parameters
- Workflow jobs and Workflow runs documentation HOT 3
- curl command in README is incorrect HOT 1
- Typo in CircleCI API v2 Docs HOT 2
- List projects API (v2) is missing HOT 7
- typo in orb reference in docs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-preview-docs.