YAML script:
pool:
name: Azure Pipelines
demands: maven
steps:
- task: Maven@3
displayName: pom.xml
inputs:
mavenPomFile: UIAutomation/pom.xml
goals: 'clean package assembly:single'
options: '-Dmaven.test.skip=true'
testResultsFiles: '**/surefire-reports/junitreports/TEST-*.xml'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: '**/*.jar'
TargetFolder: '$(build.artifactstagingdirectory)'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
condition: succeededOrFailed()
Using classical editor Pipeline tasks are as follows
NOTE : Click on images for gallery view.
No comments:
Post a Comment