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

azure-pipeline-variables: '{"variable1": "value1", "variable2": "value2"}' Not working #101

Open
nanrkumar opened this issue Oct 18, 2024 · 2 comments
Labels
need-to-triage Requires investigation

Comments

@nanrkumar
Copy link

nanrkumar commented Oct 18, 2024

Hi,
I was trying to use azure pass pipeline variables from github actions, Though I am not seeing any error on Github actions side the azure pipeline is not receiving the variables that I set.

deploy-using-azure-pipelines:
needs: build-and-package
runs-on: ubuntu-latest
steps:
- name: 'Trigger an Azure Pipeline to deploy the app to ARO'
uses: Azure/pipelines@v1
with:
azure-devops-project-url: 'https://dev.azure.com/OrganizationName/ProjectName'
azure-pipeline-name: 'digital-webapp'
azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'
azure-pipeline-variables: '{ "totalVal": ${{env.TOTAL_COUNT}} , "stage": ${{env.STAGE}} }'

@nanrkumar nanrkumar added the need-to-triage Requires investigation label Oct 18, 2024
@benhillis
Copy link

I am having the same issue...

benhillis added a commit to microsoft/openvmm that referenced this issue Nov 13, 2024
…ipeline (#311)

It appears that Azure/pipelines@v1 azure-pipeline-variables is not
working as expected: Azure/pipelines#101. This
change moves triggering of the mirror refresh pipeline to be an Azure
DevOps pipeline instead of a GitHub workflow which should allow us to
pass parameters. This will be needed to mirror the newly-created
release/2411 branch.

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
benhillis added a commit to benhillis/openvmm that referenced this issue Nov 13, 2024
…ipeline (microsoft#311)

It appears that Azure/pipelines@v1 azure-pipeline-variables is not
working as expected: Azure/pipelines#101. This
change moves triggering of the mirror refresh pipeline to be an Azure
DevOps pipeline instead of a GitHub workflow which should allow us to
pass parameters. This will be needed to mirror the newly-created
release/2411 branch.

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
@Alex-deVis
Copy link

You have to use Azure/pipelines@v1.2 if you want to pass variables. The v1 tag does not contain the field azure-pipeline-variables.

Though I am not seeing any error on Github actions

You should see a warning complaining about unknown fields though: Unexpected input(s) 'azure-pipeline-variables', valid inputs are ['azure-devops-project-url', 'azure-pipeline-name', 'azure-devops-token']
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-to-triage Requires investigation
Projects
None yet
Development

No branches or pull requests

3 participants