ARTIFACTORY: Concealing Artifactory URL in Azure Pipelines and Displaying if Already Hidden in Build Logs

AuthorFullName__c
Vaibhav Jain
articleNumber
000005822
FirstPublishedDate
2023-07-19T11:45:38Z
lastModifiedDate
2025-07-22

ARTIFACTORY: Concealing Artifactory URL in Azure Pipelines and Displaying if Already Hidden in Build Logs

This article focuses on the process of hiding the Artifactory URL and replacing it with asterisks (****) in Azure Pipelines' build logs. Concealing the URL is particularly useful when we want to restrict access to the Artifactory URL from other users. This can be achieved by utilizing variables in the pipeline configuration. Here are the steps to accomplish this task in Azure.

Step 1: Create a Sample Pipeline in Azure


To begin, create a sample pipeline in Azure and ensure that the Artifactory Connection is properly configured. Refer to the provided documentation for guidance on setting up a sample pipeline.

Step 2: Define Variables in the Pipeline


Within the pipeline configuration, navigate to the variables section. Here's an example screenshot depicting the variables interface.

User-added image


In the variables section, click on "New Variable" and assign a suitable name (e.g., "demo-cnn"). Enter the Artifactory URL and enable both options, as shown in the screenshot. Remember to save the changes.


User-added image

Step 3: Save and Run the Pipeline


Save the pipeline configuration and initiate a run. Upon examining the build logs, you will notice that the Artifactory URL is replaced with asterisks (****) when retrieving data from Artifactory. Refer to the provided screenshot for reference.

User-added image

Step 4: Displaying the Artifactory URL


If you prefer to display the Artifactory URL instead of concealing it in the build logs, you can remove the variables defined earlier. Follow these steps:

  1. Navigate to the Variables tab within the pipeline configuration.
  2. Delete the variables related to the Artifactory URL.



User-added image


After removing the variables, rerun the pipeline. This time, the Artifactory URL will be visible in the build logs.