Commit Graph

14 Commits

Author SHA1 Message Date
qwerty287
8cdac56d8f
Check for correct license header () 2023-08-10 11:06:00 +02:00
Anbraten
e0ed1b3e49
Change master to main () 2023-07-31 05:47:23 +02:00
Thomas Anderson
b616a822a0
Fixed when:evaluate on non-standard (non-CI*) env vars ()
Makes it possible to evaluate `when` constraint on custom environment
variables.
2023-07-02 23:45:22 +02:00
qwerty287
eaae6b44c7
Remove default event filter ()
Closes https://github.com/woodpecker-ci/woodpecker/issues/1863
2023-06-21 18:12:20 +02:00
6543
ea895baf83
Resolve built-in variables for global when filter ()
addresses
bd461477bd

close  , close 

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-06-05 00:15:07 +02:00
Stephen Muth
bc87208a33
Rework status constraint logic for successes ()
Since "success" and "failure" are the only two possible values, and
"success" is considered to be included by default, the existing code can
also be simplified a little.

This has the side effect of ignoring the "exclude" part of the
constraint completely. I put it in the tests just to make sure the
workaround in
https://github.com/woodpecker-ci/woodpecker/issues/1181#issuecomment-1347253585
continues to work as expected, but couldn't think of any legitimate use
cases for it.

Fixes 
2023-01-02 06:36:57 +01:00
qwerty287
849e05bb8b
Rename build to pipeline in code ()
Ref:  

Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: 6543 <6543@obermui.de>
2022-10-18 03:24:12 +02:00
Anbraten
287800ac62
Add when evaluate filter ()
closes  
closes 
closes 

Have a look for

https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md
2022-10-06 01:49:23 +02:00
Zav Shotan
ec9b0a62a7
Add support for pipeline root.when conditions ()
Co-authored-by: Zav Shotan <zshotan@bloomberg.net>
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: 6543 <6543@obermui.de>
2022-09-26 09:27:20 +02:00
6543
383f273392
Add cron feature ()
https://woodpecker-ci.org/docs/usage/cron

Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2022-09-01 00:36:32 +02:00
6543
ca84f703e3
Add default event filter ()
breakout from 

when new events are added you don't have to worry that pipeline will behave different as it does now with this

Co-authored-by: Anbraten <anton@ju60.de>
2022-08-30 00:36:37 +02:00
Anbraten
e269890643
Allow multiple when conditions ()
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: LamaAni <zshotan@bloomberg.net>
2022-08-14 19:32:49 +02:00
Anbraten
e79ad00826
Add agent tagging / filtering for pipelines ()
Officially support labels for pipelines and agents to improve pipeline picking. 

* add pipeline labels
* update, improve docs  and add migration
* update proto file

---
closes  & 
2022-05-31 01:12:18 +02:00
6543
04eb7935db
Improve compile pipeline ()
Refactor
- use constants for strings
- more tests
- move constraint code into own package

Enhance
- all constrains use doublestart (glob pattern matching) now

Co-authored-by: Anbraten <anton@ju60.de>
2022-01-17 14:43:30 +01:00