Giter VIP home page Giter VIP logo

Comments (10)

stale avatar stale commented on July 1, 2024 3

In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community. Sorry for any confusion resulting from this move.

from azure-pipelines-yaml.

altendky avatar altendky commented on July 1, 2024 2

How about an actual link to the corresponding issue over there?

from azure-pipelines-yaml.

stale avatar stale commented on July 1, 2024 1

In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community. Sorry for any confusion resulting from this move.

from azure-pipelines-yaml.

stale avatar stale commented on July 1, 2024 1

In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community. Sorry for any confusion resulting from this move.

from azure-pipelines-yaml.

altendky avatar altendky commented on July 1, 2024 1

Yes, but where is this issue covered? It's like I'm talking to a send-only bot... :]

from azure-pipelines-yaml.

AceHack avatar AceHack commented on July 1, 2024

any update?

from azure-pipelines-yaml.

martinm82 avatar martinm82 commented on July 1, 2024

I am as well interested in this feature. The workaround proposed above is not really nice as you end up with some quite noise in the yaml.

Could it be that this PR is related to this issue: #129?

from azure-pipelines-yaml.

mbakholdina avatar mbakholdina commented on July 1, 2024

I have the same problem when using templates. For this particular case, I found a workaround and can use different job templates for different OS. However, this bug blocks me from implementing another required functionality, e.g., applying templates with the number of steps for a particular case depending on build options. Do you have any updates on the status of fixing this?

# File: azure-pipeline.yml

trigger:
- master

variables:
  osMacOS: macOS
  osLinux: Linux

jobs:
- template: templates/template-job.yml
  parameters:
    os: $(osMacOS)
    name: macOS_debug
    vmImage: 'macOS-10.13'

- template: templates/template-job.yml
  parameters:
    os: $(osLinux)
    name: Linux_debug
    vmImage: 'ubuntu-16.04'
# File: templates/template-job.yml

parameters:
  os: ''
  name: '' 
  vmImage: ''
  
jobs:
- job: ${{ parameters.name }}
  pool: 
    vmImage: ${{ parameters.vmImage }}
  
  steps:
  # FIXME: This "if condition" does not give "True" because parameters.os is not set to 'macOS' when it should be
  - ${{ if eq(parameters.os, 'macOS') }}:
    - script: echo Mac
# FIXME: The same problem as above
  - ${{ if eq(parameters.os, 'Linux') }}:
    - script: echo Linux

from azure-pipelines-yaml.

okroj-it avatar okroj-it commented on July 1, 2024

All of the above. I have got a huge multi-stage pipeline that relies heavily on runtime variables. I cannot set runtime variables in the yml file itself so i have resorted to having them in the UI of the pipeline definition, but this does not solve the issue as the variables are not expanded during the runtime yml creation. The parser does not expand the variables so it cannot validate the yml conditions. I'm used to that since I have been using Jinja2 templates for a long time and I've wrongly assumed this works here in a similar fashion. However it does not which has forced me to put the conditions in the low level step templates resulting in a pipeline that includes all the steps but simply skips some of them. This is very annoying to maintain.

from azure-pipelines-yaml.

Saibamen avatar Saibamen commented on July 1, 2024

I moved it into DC: https://developercommunity.visualstudio.com/idea/1008340/please-add-process-parameters.html

Use Follow button on the right to track it

from azure-pipelines-yaml.

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.