From 1b7fb0ddb32de2002a0b1582f8b49e969adc91e5 Mon Sep 17 00:00:00 2001 From: David Staheli Date: Sat, 1 Sep 2018 15:01:39 -0400 Subject: [PATCH] Publish war file as a build artifact --- vsts-ci.Gradle.yml | 5 ++--- vsts-ci.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/vsts-ci.Gradle.yml b/vsts-ci.Gradle.yml index 800a0dc8c..88157314c 100644 --- a/vsts-ci.Gradle.yml +++ b/vsts-ci.Gradle.yml @@ -21,11 +21,10 @@ steps: - task: CopyFiles@2 inputs: - contents: '**/*.jar' + contents: '**/*.war' targetFolder: '$(build.artifactStagingDirectory)' - task: PublishBuildArtifacts@1 inputs: - artifactName: jars - publishLocation: container + artifactName: 'war' pathToPublish: '$(build.artifactStagingDirectory)' diff --git a/vsts-ci.yml b/vsts-ci.yml index 59d181688..59357b5a9 100644 --- a/vsts-ci.yml +++ b/vsts-ci.yml @@ -20,11 +20,10 @@ steps: - task: CopyFiles@2 inputs: - contents: '**/*.jar' + contents: '**/*.war' targetFolder: '$(build.artifactStagingDirectory)' - task: PublishBuildArtifacts@1 inputs: - artifactName: 'jars' - publishLocation: 'container' + artifactName: 'war' pathToPublish: '$(build.artifactStagingDirectory)'