Visual Studio Team Services Task Data Types

I was recently working on a new task for Trackyon Advantage and wanted to have an input field for a number.  When you define your task in the task.json file you have different types you can assign to each input field.  Below is a list of all the types I could find and examples on how to define them and the resulting UI.

  • filePath
    {
       "type": "filePath",
       "defaultValue": "pom.xml"
    }
    image

     

  • artifactPath
  • boolean
    {
       "type": "boolean",
       "defaultValue": "true"
    }
    image

     

  • azureConnection
  • connectedService
    • Custom
    • AzureRM
      {
         "type": "connectedService:AzureRM",
         "defaultValue": ""
      }
      image

       

    • AzureClassic
      {
         "type": "connectedService:Azure:Certificate,UsernamePassword",
         "defaultValue": ""
      }
      {
         "type": "connectedService:Azure"
         "defaultValue": ""
      }
      image

       

    • Generic
      {
         "type": "connectedService:Generic"
      }
      image

       

    • GitHub
  • radio
    {
       "type": "radio",
       "defaultValue": "JDKVersion",
       "options": {
          "JDKVersion": "JDK Version",
          "Path": "Path"
    	}
    }
    image

     

  • pickList
    {
       "type": "pickList",
       "defaultValue": "None",
       "options": {
          "None": "None",
    	   "Cobertura": "Cobertura",
    	   "JaCoCo": "JaCoCo"
    	}
    }
    image

     

  • multiLine
    {
       "type": "multiLine",
       "defaultValue": ""
    }
    image

     

  • stringList
  • string
    {
       "type": "string",
       "defaultValue": ""
    }
    image

Add comment

Loading