Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for conditions in templates? #600

Open
woeterman94 opened this issue Sep 12, 2023 · 1 comment
Open

Support for conditions in templates? #600

woeterman94 opened this issue Sep 12, 2023 · 1 comment
Labels
Area: Yaml enhancement New feature or request

Comments

@woeterman94
Copy link

Same way as

- task: SonarQubeAnalyze@5
  condition: and(succeeded(), ${{parameters.runSonarQube}} )

I'd like to use conditions in templates

 - template: templates/build-server.yml
   condition: and(succeeded(), ${{parameters.runSonarQube}} )
          parameters:
            enableLongRunningTests: false
            runSonarQube: false
            runOwaspDependencyCheck: false
@ismayilov-ismayil ismayilov-ismayil added enhancement New feature or request and removed triage labels Sep 13, 2023
@ismayilov-ismayil
Copy link

Hi @woeterman94, thanks for asking. We are working on more prioritized issues at the moment, but will get back to this one soon.
Meanwhile you can use parameter for conditional execution as described here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Yaml enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants