steps:
- task: CmdLine@1
  displayName: Run printenv
  inputs:
    filename: printenv

- task: Gradle@1
  displayName: Gradle build (zip)
  inputs:
    options: '--info --scan'
    tasks: clean :plugin:prepRelease zip
    testResultsFiles: '**/TEST-*.xml'
    jdkVersionOption: 1.8

- task: CopyPublishBuildArtifacts@1
  displayName: "Publish Artifact: $(build.buildNumber)"
  condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
  inputs:
    CopyRoot: 'plugin/build/distributions'
    Contents: '*.zip'
    ArtifactName: '$(build.buildNumber)'
    ArtifactType: Container

- task: CopyPublishBuildArtifacts@1
  displayName: "Publish Artifact: $(build.buildNumber)-reports"
  condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
  inputs:
    CopyRoot: 'plugin/build/reports'
    Contents: '*'
    ArtifactName: '$(build.buildNumber)-reports'
    ArtifactType: Container

steps:
- task: CmdLine@1
  displayName: Run printenv
  inputs:
    filename: printenv

- task: Gradle@1
  displayName: Gradle build (zip)
  inputs:
    options: '--info --scan'
    tasks: clean :plugin:prepRelease zip
    testResultsFiles: '**/TEST-*.xml'
    jdkVersionOption: 1.8

- task: PublishPipelineArtifact@1
  displayName: "Publish Artifact: $(build.buildNumber)"
  condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
  inputs:
    path: 'plugin/build/distributions'
    artifact: '$(build.buildNumber)'

- task: PublishPipelineArtifact@1
  displayName: "Publish Artifact: $(build.buildNumber)-reports"
  condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
  inputs:
    path: 'plugin/build/reports'
    artifact: '$(build.buildNumber)-reports'
Update the CI to use the new Pipeline Artifacts
Update the CI to use the new Pipeline Artifacts
