Git Product home page Git Product logo

Comments (4)

lydiacheah avatar lydiacheah commented on August 16, 2024 1

@WilliamAntonRohm @steved0x -- Thanks! I found this other section about pipeline resource variables that specifically say: 'Pipeline resources variables are only available at runtime,' which does explain why ${{ if eq(variables[resources.pipeline.<Alias>.sourceBranch], 'refs/heads/master') }} does not get evaluated as expected.

Would be great if that line could be added to the documentation under Pipeline resource metadata as predefined variables too.

I will also post the question on Azure DevOps Services to see if there is a workaround in the meanwhile.

from azure-devops-yaml-schema.

lydiacheah avatar lydiacheah commented on August 16, 2024 1

ADO support confirmed that the resource variables will not be available in a template expression, even though they are predefined variables. This is because resource variables are only available at runtime.

That information should definitely be included under Pipeline resource metadata as predefined variables, as it is under Pipeline resource variables.

from azure-devops-yaml-schema.

WilliamAntonRohm avatar WilliamAntonRohm commented on August 16, 2024

@lydiacheah -- Lydia, thank you for your thorough feedback. Please consider these resources:

@steved0x -- Steve, please look into this issue.

from azure-devops-yaml-schema.

WilliamAntonRohm avatar WilliamAntonRohm commented on August 16, 2024

@lydiacheah -- Lydia, thank you for your thorough follow-up.

from azure-devops-yaml-schema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.