azure-devops

Synchronize Github repository with Azure Devops repository

人走茶凉 提交于 2021-02-11 15:09:11
问题 I am trying to follow the solution given in the following link: How to fix Github to Azure DevOps Sync? My requirement is to trigger Azure Devops pipeline when a commit is done in any branch of GitHub repository. I have already imported the code from GitHub repository using PAT token from GitHub repo. The PAT token is given all access in GitHub repository. But I am getting the following error: Following is my pipeline yaml code: trigger: branches: include: - '*' variables: system_accesstoken:

devops pipeline - use dynamic parameters for job name

非 Y 不嫁゛ 提交于 2021-02-11 14:59:52
问题 I have some code that loop through some values utilising templates. My issue is the jobs all run randomly so I want to create some dependencies, but because they are in a for loop I have not been able to work out how I can name the job steps to then utilise the "dependsOn" option. Also if I tried to hard code a job name I get a duplicate job name error. patch-tasks.yml jobs: - job: '${{ parameters.sqlserver }}_A' displayName: '${{ parameters.sqlserver }}--set-up-stuff' steps: - task:

devops pipeline - use dynamic parameters for job name

元气小坏坏 提交于 2021-02-11 14:58:25
问题 I have some code that loop through some values utilising templates. My issue is the jobs all run randomly so I want to create some dependencies, but because they are in a for loop I have not been able to work out how I can name the job steps to then utilise the "dependsOn" option. Also if I tried to hard code a job name I get a duplicate job name error. patch-tasks.yml jobs: - job: '${{ parameters.sqlserver }}_A' displayName: '${{ parameters.sqlserver }}--set-up-stuff' steps: - task:

Can't add users to Azure DevOps project

让人想犯罪 __ 提交于 2021-02-11 14:55:47
问题 Totally new to DevOps and am getting stuck in the very first steps. I have been able to login, and create an organization and a project. All works well for me except when I go to add a user to the team - I enter their email, and I get a status back of: "Users with the same email domain as the backing tenant can only be added if they are members of your organizations Azure Active Directory" I'm not sure where to proceed from here... as background, most of the computers here all have office,

How to filter timestamp column in Data Flow of Azure Data Factory

China☆狼群 提交于 2021-02-11 14:51:23
问题 I have timestamp column where I have written following expression to filter the column: contact_date >= toTimestamp('2020-01-01') && contact_date <= toTimestamp('2020-12-31') It doesn't complain about syntax but after run it doesn't filter based on date specified. Simply to say logic doesn't work. Any idea? Date Column in Dataset: 回答1: Please don't use toTimestamp() function. I tested and you will get null output. I use a Filter active to filter the data. Please use the toString() and change

How to filter timestamp column in Data Flow of Azure Data Factory

不问归期 提交于 2021-02-11 14:50:01
问题 I have timestamp column where I have written following expression to filter the column: contact_date >= toTimestamp('2020-01-01') && contact_date <= toTimestamp('2020-12-31') It doesn't complain about syntax but after run it doesn't filter based on date specified. Simply to say logic doesn't work. Any idea? Date Column in Dataset: 回答1: Please don't use toTimestamp() function. I tested and you will get null output. I use a Filter active to filter the data. Please use the toString() and change

What PAT scope to pick in azure devops to get the yaml schema?

安稳与你 提交于 2021-02-11 14:32:53
问题 I'd like to use the following endpoint: https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/yamlschema/get?view=azure-devops-rest-6.0 I.e. https://dev.azure.com/{org}/_apis/distributedtask/yamlschema For that I need to create a PAT with the appropriate access, only the docs do not list which scope I need to enable. 回答1: What PAT scope to pick in azure devops to get the yaml schema? Based on my test , you could grant the Token Administration(Read & manage) or Tokens(Read &

How can I read the PR tag inside a pipeline triggered by another pipeline?

杀马特。学长 韩版系。学妹 提交于 2021-02-11 14:24:06
问题 I had my first question answered here Is it possible to read the PR tag on a pipeline task? but my scenario is a little bit different. I need to read the PR tag from a pipeline that was triggered by another pipeline. PR triggers the CI which checks if everything's ok for merge. If it is, the CI triggers the CD which will in turn read the PR tag. PR -> CI -> CD (access the tag here) I have a PowerShell task named Get PR tag with the following script (courtesy of Lance): $url = "$($env:SYSTEM

How to setup my Az DevOps pipeline to live in a different branch?

最后都变了- 提交于 2021-02-11 14:22:44
问题 I'm setting up Azure DevOps pipeline for CI for a .NET Core 3.0 mvc project. I've created a new branch, DEVOPS , that I would like to store the YAML file in. The file includes a trigger for changes to the master branch: trigger: - master pool: vmImage: 'ubuntu-latest' # other steps/tasks below... I deleted all files except .gitignore and azure-pipelines.yml from the DEVOPS branch, committed it, and pushed it to origin (Az DevOps Repo). I then switched to the master branch, deleted the azure

Cypress Integration with DevOps

若如初见. 提交于 2021-02-11 14:16:21
问题 What I want to achieve: I have a repository on Azure DevOps which hosts my web application. I wrote a test suite for UI Automation using Cypress. I created a separate repository for my test cases to check if they are working properly or not. I created a pipeline which has the following content: trigger: - manual-tests pool: vmImage: 'ubuntu-latest' steps: - task: NodeTool@0 inputs: versionSpec: '10.x' displayName: 'Install Node.js' - script: | npm install displayName: 'npm install' - task: