Comments (8)
Alright, I made some progress and made your example work:
https://github.com/sharpliner/sharpliner/blob/55b9fbb12e9610df0013a79792a195982d47f94a/tests/Sharpliner.Tests/AzureDevOps/ConditionedExpressions/EachExpressionTests.cs
I only need to verify everything and then I will push this change and make a new version of the library.
from sharpliner.
Thanks for opening this issue, this is a missing feature. This should be easy to add, I will have a look at it next week.
from sharpliner.
Thanks much appreciated
from sharpliner.
Apologies, I fell sick. But the problem seems a bit more complex than I thought. It's about how ifs and each blocks can be mixed, it makes it quite hard to have both.
from sharpliner.
Hello, perhaps delivering the each blocks without if/else will still provide value to developers.
Thanks in advance
from sharpliner.
Ah, I was able to find a nice solution which makes it work with everything. Will post a PR + new version shortly.
from sharpliner.
@asos-neildownes there will be a new version 1.5.7
of the package that should support each
.
I tried to do it fast so it's possible there might be some convoluted cases where it doesn't work. For instance, nested each blocks don't work but maybe I can add the support as a follow up and you are hopefully unblocked now.
Let me know how it works.
from sharpliner.
I am closing this in favour of a new issue that only describes the problems with nested conditioned blocks
from sharpliner.
Related Issues (20)
- RepositoryResource doesn't serialize RepositoryType.Git HOT 10
- Missing a top level `pool` property on pipeline definition HOT 1
- Extends definition HOT 3
- Conditionally define `Arguments` for DotNetCoreCLI@2 task HOT 6
- Nested conditioned blocks (`if`, `each`...) not working
- Parameterize ExtendsPipelineDefinition to allow easier inheritance of PipelineWithExtends
- Make FlattenDefinition method on Conditioned public HOT 1
- Referencing a Sharpliner library project directly does not build
- Allow registration of custom validations via `SharplinerConfiguration`
- Allow overriding PipelineBase.Validation in subclasses outside of the Sharpliner project HOT 1
- Add models for PublishTestResults@2 and PublishCodeCoverageResults@1 ADO tasks
- DotNetInstallBuilder.FromGlobalJson() fails to set the useGlobalJson input HOT 1
- Add models for file operation tasks
- Make it easier to export new API
- Workspace = JobWorkspace.All result in error on DevOps Pipeline HOT 2
- How do I use runtime expressions? HOT 3
- Pwsh.Inline() Command HOT 2
- extension methods HOT 2
- Enum as a template parameter? HOT 3
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 sharpliner.