jfrog / jfrog-azure-devops-extension

Apache License 2.0
46 stars 61 forks source link

Add JFrog Yarn extension task to Azure DevOps JFrog Extension #371

Open pruthvirb opened 1 year ago

pruthvirb commented 1 year ago

The following documents the available extension tasks for the Azure DevOps JFrog Extension - https://marketplace.visualstudio.com/items?itemName=JFrog.jfrog-artifactory-vsts-extension

We’d like this new extension task to make it easy to perform JFrog yarn commands, similar to the JFrog npm one

sverdlov93 commented 1 year ago

Hi @pruthvirb , We currently can't add new tasks to our JFrog Azure DevOps Extension following sizing restrictions for azure extensions. The solution here is to use the JFrog CLI task.

jfrog-azure-devops-extension 2.6.0 is released and it allows to use JFrog CLI Task to run multiple commands and also it provides the Server ID and Build flags via environment variables. That way it can now support all JFrog CLI functionalities and new features and improvements that are being constantly updated. You can use it for example to run a full scenario of JFrog CLI commands. For example here is a Terraform scenario:

- task: JfrogCliV2@1
  inputs:
    jfrogPlatformConnection: 'JFrog Platform V2'
    command: |
      jf rt ping
      jf terraform-config --repo-deploy=terraform-remote 
      jf terraform publish --namespace=example --provider=aws --tag=v0.0.1

Looking forward to your feedback on it.