Quantcast
Channel: User Giulio Vian - Stack Overflow
Browsing latest articles
Browse All 38 View Live

Comment by Giulio Vian on How can a test function be skipped on Github Actions?

do you want to skip a whole step of the build (then conditionals is the answer) or what? what you do in the build: you start a test runner for an entire suite?

View Article



Comment by Giulio Vian on How can I update AssemblyVersion number in...

I usually recommend GitVersion so "best way" is a bit too opinionated IMHO.

View Article

Comment by Giulio Vian on Create Azure Service Principal for Service App...

the error Application with identifier '' was not found in the directory seems to me that you are passing the wrong id (they are all similar, what a shame) I updated my answer in case it helps BTW I...

View Article

Comment by Giulio Vian on Azure DevOps Pipeline is not copying or deploying...

Have you checked the Output folders of your projects? It may be that they use custom path for those build configurations

View Article

Comment by Giulio Vian on Automating a FluentMigrator Rollback on Azure Devops

if you tie the migration ids to code ids (e.g. commit hashes) than you have a (relatively) easy way of matching them. Another way could be scanning version control history (e.g. git log) to find the...

View Article


Comment by Giulio Vian on How to trigger CodePipeline for GitHub pull...

I bet the scenario is to implement a validation check on the PR by merging the code locally in the pipeline and running a whole set of checks and tests. If the build fails, the PR is automatically...

View Article

Comment by Giulio Vian on How should I trigger one pipeline at the end of...

Is the build pipeline publishing any artifact using the PublishPipelineArtifact task?

View Article

Comment by Giulio Vian on How to build a docker image with RSA key as build...

I notice now that you have a spurious dash (-) before name. The YAML parser starts a new step and the Docker step never sees the environment variable

View Article


Comment by Giulio Vian on How to find a directory on code running on Azure...

careful with . (dot) vs _ (underscore) BUILD_SOURCESDIRECTORY => Environment var Build.SourcesDirectory => pipeline var in the case of C# code pick the _ (underscore) version

View Article


Comment by Giulio Vian on Is Selenium Grid 4 compatible with v3 clients?

thanks @vvv but I want to know the opposite: what happens to existing tests written for Selenium v3 when run on a Selenium v4 Grid.

View Article

Comment by Giulio Vian on Is Selenium Grid 4 compatible with v3 clients?

very interesting, thanks for the EdgeChromium tip

View Article

Comment by Giulio Vian on Looking for an Alternative to call a Target with...

They moved the content to learn.microsoft.com/en-us/archive/blogs/giuliov/… . I fixed the link but formatting isn't great. Hope it works for you.

View Article

Comment by Giulio Vian on question re terraform and github actions / secrets

Yours is worth an S.O. question in itself; shortly it depends. How important are those credentials, how many permissions the account have etc. For an hobbyist project GH secrets are fine, for an...

View Article


Answer by Giulio Vian for Set permissions for different namespaces in Azure...

Are you looking for the Security API page?You probably need to manage group membership using Graph API.The Get started page lists the libraries you can use and how to authenticate.

View Article

Answer by Giulio Vian for How to do Code Signing in Cloud?

The simple answer is: use cloud-based build services like Azure DevOps (ex VSTS) but keep at least one build server on premise to do the signing using your hardware token.Azure DevOps (ex Visual Studio...

View Article


Answer by Giulio Vian for Azure Build Pipeline Bash Script now setting build...

The $() syntax is evaluated by the Agent before bash sees it, while the $var is evaluated by bash. This is why ChangeSet is correctly assigned.The echo '##vso[task.setvariable...

View Article

Answer by Giulio Vian for Missing DNS validation record when using terraform...

The zone shouldn't have a final . ?resource "aws_route53_zone""idarth-hosted-zone" { name = "${var.dns_zone}."}Also on a similar scenario, I used a CNAME for the DNS record pointing to the CloudFront...

View Article


Answer by Giulio Vian for How can I deploy content to a static website in...

I would recommend a different approach: running an Azure DevOps agent with a static IP and/or inside the private VNet.Why I consider this a better choice:audit logs will be filled with addition and...

View Article

Answer by Giulio Vian for how to sort Data Sources in terraform based on...

The sort() function orders lexicographical and you have no simple key here.You can use filtering with some code like this (v0.12)locals { best_db_instance_class_key = "rds.pg.s1.small"...

View Article

Answer by Giulio Vian for Adding current iteration/sprint number to the build...

Iteration is not a unique value, so there is no simple answer.It depends how you determine which Iteration are you on and it may be different from one project to another, from one team to another.You...

View Article

Answer by Giulio Vian for Pass output (database password) from Terraform to...

One solution is to generate the Kubernetes yaml from a template.The pattern uses templatefile function in Terraform 0.12 or the template provider earlier versions to read and local_file resource to...

View Article


Answer by Giulio Vian for How to give permissions to AKS to access ACR via...

This code worked for me.resource "azuread_application""aks_sp" { name = "sp-aks-${local.cluster_name}"}resource "azuread_service_principal""aks_sp" { application_id =...

View Article


How to automate SSRS configuration

This is my scenario: I have to setup a number of TFS 2013 Application Tier nodes (at least 6) and I am trying to automate the process, the nodes hosts also SQL Server Reporting Services 2012 SP1 in...

View Article

Answer by Giulio Vian for Should I check-in my node_modules folder to my code...

In general, you should not add the node_modules to your version control.If you have an artifact repository (TFS/AzDO offers this feature as Package Management since 2017), you should use that to store...

View Article

Answer by Giulio Vian for Deploy azure resource in prebuilt resource group...

Use the azurerm_resource_group data source.data "azurerm_resource_group" "demo" { name = "demoterraform"}in the rest of the code you can refer to it with a similar expression...

View Article


Answer by Giulio Vian for How to build mono repo across languages or cross...

Say your monorepo is organised this way:/ README.md ... aCppPrj/ README.md build/ doc/ src/ ... aJavaPrj/ ... aNodePrj/ ... common/In this example the common directory has some scripts shared by all...

View Article

Image may be NSFW.
Clik here to view.

Answer by Giulio Vian for Fetching multiple TFS git repo sources with git...

You must select the option to download submodules.In YAML you must add an explicit checkout stepsteps:- checkout: self submodules: true

View Article

Answer by Giulio Vian for Github actions / Run job after matrix is done

I did that: you must add a needs clause in the following job, e.g.jobs: shake: ... post_shake: needs: [shake] steps: ...

View Article

Answer by Giulio Vian for How to build a docker image with RSA key as build...

You should quote the variable, i.e. --build-arg user_private_rsa="$USER_PRIVATE_RSA" otherwise docker is picking anything after the first whitespace as an option for itself.

View Article



Answer by Giulio Vian for How can I use terraform to setup in multi regions?

Yes, it is the expected behaviour because the resources have now different Terraform identifiers. When Terraform runs plan or apply, it looks in the status file and cannot find the new identifiers...

View Article

Answer by Giulio Vian for Stack Rank numbers suddenly messed up in TFS 2013

Ewald explains everything in this post Behind the scenes: the Backlog Priority or Stack Rank fieldAfter we shipped the change, we have received multiple reports fromcustomers who were confused with the...

View Article

Answer by Giulio Vian for Azure DevOps Template not working (Unexpected values)

Trigger can be defined only at the pipeline level, you cannot set it at the stage level. The stage can only have these children (see YAML schema reference):stages:- stage: string # name of the stage...

View Article

Answer by Giulio Vian for How can I use multible terraform tf files in one...

Move this declaration in its own file instead of duplicatingprovider "aws" { region = "eu-west-2"}Terraform doesn't care if you use one or 100 files for the code, but definitions must be unique.

View Article


Answer by Giulio Vian for How to save the azure keyvault certificate to a...

You may use the azurerm_key_vault_certificate_data data source.Example from the docsdata "azurerm_key_vault" "example" { name = "examplekv" resource_group_name = "some-resource-group"}data...

View Article

Answer by Giulio Vian for Detect TFS Build vs. Visual Studio build

You do not need to edit the CSProj file: just use CMD.EXE syntax in Visual Studio Post-Build eventsYou can test if running inside Visual StudioIF "$(BuildingInsideVisualStudio)"=="true" (…)or inside...

View Article

Is Selenium Grid 4 compatible with v3 clients?

Before I spent hours in setting up a Selenium v4 Grid, can someone confirm it is backward compatibility with existing clients?I was not able to find anything in official documentation, nor in my...

View Article


How to rebuild the packed-refs file

ContextI am writing a script to mirror and periodically refresh some repositories from GitHub. GitHub repos have reference to Pull request branches that have no meaning outside, so I am filtering them...

View Article


Answer by Giulio Vian for TF30046 Error after restoring TFS database to new...

You incorrectly configured TFS (in fact it created a default collection). If you read Move Team Foundation Server from one hardware configuration to another carefully, you have to run the Application...

View Article
Browsing latest articles
Browse All 38 View Live




Latest Images