Deploy on branch with wildcard or regular expression
Hi,
i would like to deploy only when the branch is "release/..." (in my
example: "release/1.0.0")
I tried wildcard and regular expressions:
deploy:
- provider: NuGet
...
on:
branch: release/*
etc. However, the results were always like:
"NuGet" deployment for branch "release/*" has been skipped because current branch is "release/1.0.0"
"NuGet" deployment for branch "release\/.*" has been skipped because current branch is "release/1.0.0"
"NuGet" deployment for branch "release/.*" has been skipped because current branch is "release/1.0.0"
BR Matthias
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ilya Finkelshte... on Jan 27, 2017 @ 06:13 PM
Hi Matthias,
Regular expressions should be surrounded by forward slashes
or simple/
. Respective part of YAML may look like this:Thanks!
Ilya.
2 Posted by Matthias on Jan 28, 2017 @ 09:45 AM
Feeling stupid now. ¯_(ツ)_/¯
Thx a lot - works like a charm!
BR Matthias
Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:14 AM.