azure-devops

How to restore packages from Artifactory using YAML

喜欢而已 提交于 2021-01-29 12:16:38
问题 The guide here gives the example code below: - task: DotNetCoreCLI@2 inputs: command: restore projects: '**/*.csproj' feedsToUse: config nugetConfigPath: NuGet.config # Relative to root of the repository externalFeedCredentials: <Name of the NuGet service connection> but I'm struggling to know what is required in place of <Name of the NuGet service connection> or even NuGet.config . The Guide on Artifactory doesn't use YAML or even mention it so I don't know if it is even possible. My

Upgrading my Free trial Azure Devops version to LIcensed

我的未来我决定 提交于 2021-01-29 12:09:09
问题 I am trying to Upgrade my free trial Azure DevOps to a licensed version but i don't see any options to apply my licenses. Is there a way to apply our new licenses without having to re-install? 回答1: In earlier versions, TFS included code which required a valid product key to be present in order for the server to start up. Since TFS 2015.2, TFS no longer distinguish the versions in this way, so there is no product key left on the TFS Admin console Product Information Summary page to display.

Azure Self Hosted agent : A session for this agent already exists , when running more then 1 build agent

老子叫甜甜 提交于 2021-01-29 11:34:55
问题 I have defined 1 agent called "ios_dockeragent" in agent pools configuration : Settings/Agent pools/Default In my Azure DevOps organization, I bought 4 Parallel jobs and 3 Parallel hosted jobs so I do not have a parallel jobs problem. From each build server I start the self hosted server like this where "ios_dockeragent" is defined in devops: docker run -d --rm -t --name=ios_docker_64 -e AZP_WORK=/temp/working_dir -v =/temp/working_dir:/azp -e AZP_URL=https://dev.azure.com/xx -e AZP_TOKEN

Errors when attempting to update team field values

坚强是说给别人听的谎言 提交于 2021-01-29 11:32:38
问题 I'm getting any of multiple errors when I try to use the Client SDK to add an existing Area to an existing Team. Here's my code: Using oTeamClient As TeamHttpClient = Utils.Connection.GetClient(Of TeamHttpClient) Using oWorkClient As WorkHttpClient = Utils.Connection.GetClient(Of WorkHttpClient) oValue = New TeamFieldValue With {.Value = Area.Path, .IncludeChildren = False} oTeams = oTeamClient.GetTeamsAsync(ProjectName).Result oTeam = oTeams.Single(Function(Team) Team.Name.StartsWith

Output command to null

核能气质少年 提交于 2021-01-29 11:27:19
问题 I am using Azure pipelines variables to construct a set of parameters for a command. The type of variable I must use for Azure pipelines is in macro format (like $(var) ), you can see the details of it here: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#runtime-expression-syntax If $(var) does not contain a value, instead of printing "nothing", it will print $(var) When I run my command and that value isn't passed in, an error

Azure Pipeline - Opening RemoteWebDriver with different credentials

故事扮演 提交于 2021-01-29 11:18:42
问题 Basically we set up test automation in one environment(DEV). For this environment we use a users credentials to open the browser for all tests. So in our dev environment we have the same password set up for all users. This will be the same approach in UAT but with a different password When testing we launch the browser using impersonation and launch the browser as 'run as' for that user private static RemoteWebDriver OpenChromeBrowser(string username) { var service = ChromeDriverService

how to log custom messages to azure portal analytics monitoring logs

陌路散爱 提交于 2021-01-29 10:31:56
问题 I am trying to add custom logs in my c# asp dot net core web api. I am able to find the api calls logs in Azure portal -> application insights -> logs. But i am not able to find the custom logs i am entering using below code. whats the place to search for them. public async Task Invoke(HttpContext httpContext) { // First, get the incoming request var request = await FormatRequest(httpContext.Request); // TODO: Save log to chosen datastore _logger.LogInformation('custommessage101'); // ------

Not Generate Android APK Version wise using devops Pipeline after changes version code in build gradle and commit

别等时光非礼了梦想. 提交于 2021-01-29 10:22:31
问题 I have committed code after change Version Code in app Build Gradle File. I have run the pipeline in Azure DevOps. Complete the pipeline task and generate APK on drop folder but When I have published APK play store then got a message from Play store "Apk Version is already Used". 回答1: If changing versionCode in the build.gradle file is not working. you can try removing the versionCode and versionName located under the default config, and add the versionCode and versionName in AndroidManifest

Azure pipeline How to use bigger server for hosted agent builds?

谁说我不能喝 提交于 2021-01-29 10:00:27
问题 I don't understand but how do I set in the hosted azure pipeline build server to be a bigger machine with more ram and more CPU's? i want to avoid installing a self-hosted agent on one of the Azure VM's I just want to use more stronger hosted agent, where can i configure this? I'm using a hosted MAC agent. 回答1: This is not possible. Please check this documentation If Microsoft-hosted agents don't meet your needs, then you can deploy your own self-hosted agents or use scale set agents. 来源:

How to trigger azure pipeline in one topic branch during push for another topic branch

早过忘川 提交于 2021-01-29 09:57:49
问题 My azure devops pipileine's yaml file is not in master branch of bitbucket. Its in another branch inside master branch (master/pipeline-branch). I am trying to trigger that build when there is a push to another topic branch which is also not the master branch. (master/topic/secondary). In my yaml file I have written the trigger like this. trigger: - topic/secondary But no build is triggered when I push a file to secondary branch. 回答1: you need to cherry pick\merge commits with this file to