ARTIFACTORY: How to add debug loggers for Azure DevOps JFrog tasks

ARTIFACTORY: How to add debug loggers for Azure DevOps JFrog tasks

AuthorFullName__c
Srigokul Subramanian
articleNumber
000006046
ft:sourceType
Salesforce
FirstPublishedDate
2024-03-06T12:14:47Z
lastModifiedDate
2024-03-06
VersionNumber
1

Azure DevOps JFrog tasks are tasks that integrate Azure DevOps pipelines with the JFrog platform, such as Artifactory, Xray, and Distribution. These tasks allow you to perform various operations with JFrog products, such as resolving and deploying artifacts, creating and publishing packages, scanning for vulnerabilities, and more.

Azure DevOps JFrog tasks use JFrog CLI to perform the requested actions. The extension handles downloading and caching the JFrog CLI, which is done once per pipeline.

In order to enable DEBUG mode for JFrog CLI in the pipeline task

variables:

 JFROG_CLI_LOG_LEVEL: 'DEBUG'
User-added image


The JFrog CLI debug logger will give detailed logs of JFrog CLI commands and operations. You can enable the debug logger by setting the JFROG_CLI_LOG_LEVEL environment variable to DEBUG. This will print the debug logs to the standard output.


Reference:
https://github.com/jfrog/jfrog-azure-devops-extension?tab=readme-ov-file
https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory