Skip to content
Snippets Groups Projects
Commit e7549a86 authored by Alok Joshi's avatar Alok Joshi
Browse files

added azure-build for aws

parent 4259ae43
No related branches found
No related tags found
1 merge request!6Trusted ibm
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
branches:
include:
- master
paths:
exclude:
- README.md
- .gitignore
pool:
name: Hosted Ubuntu 1604
demands: maven
steps:
- task: Maven@3
displayName: 'build, test, code coverage'
inputs:
mavenPomFile: 'pom.xml'
options: '--settings ./indexer-core/maven/settings.xml -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN)'
testResultsFiles: '**/*/TEST-*.xml'
codeCoverageToolOption: JaCoCo
goals: 'install'
- task: Maven@3
displayName: 'build, test, code coverage'
inputs:
mavenPomFile: 'pom.xml'
options: '--settings ./provider/indexer-aws/maven/settings.xml -DVSTS_FEED_TOKEN=$(VSTS_FEED_TOKEN) -P indexer-aws'
testResultsFiles: '**/*/TEST-*.xml'
codeCoverageToolOption: JaCoCo
goals: 'package'
- task: CopyFiles@2
displayName: 'Copy AWS artifacts for maven deploy to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder:
Contents: |
provider/indexer-aws/CloudFormation
provider/indexer-aws/buildspec-post-deploy.yml
provider/indexer-aws/buildspec-pre-deploy.yml
provider/indexer-aws/target/*-spring-boot.jar
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
condition: succeededOrFailed()
......@@ -3,68 +3,11 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>repositoryConfiguration</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<deployment.environment>dev</deployment.environment>
<aws.accessKeyId>no-default</aws.accessKeyId>
<aws.secretKey>no-default</aws.secretKey>
<deployment.repositorybucket>osdu-local-maven-repository</deployment.repositorybucket>
<azure.devops.token>4t46p4pkk2kinwhjet3ucjb5prhexcme5cbmt4txpuoqn4jns22q</azure.devops.token>
</properties>
</profile>
</profiles>
<servers>
<!-- Local S3 Repository (used to the AWS Util Library) -->
<server>
<id>maven-s3-release-repo</id>
<username>${aws.accessKeyId}</username>
<password>${aws.secretKey}</password>
</server>
<server>
<id>maven-s3-snapshot-repo</id>
<username>${aws.accessKeyId}</username>
<password>${aws.secretKey}</password>
</server>
<server>
<id>s3.release</id>
<username>${aws.accessKeyId}</username>
<password>${aws.secretKey}</password>
</server>
<server>
<id>s3.snapshot</id>
<username>${aws.accessKeyId}</username>
<password>${aws.secretKey}</password>
</server>
<server>
<id>s3.site</id>
<username>${aws.accessKeyId}</username>
<password>${aws.secretKey}</password>
</server>
<!-- Azure DevOps Artifact Store -->
<server>
<id>dev-azure-com-slb-des-ext-collaboration-os-core</id>
<username>IntelliJ-Maven</username>
<!-- Treat this auth token like a password. Do not share it with anyone, including Microsoft support. -->
<!-- The generated token expires on or before 11/14/2019 -->
<password>${azure.devops.token}</password>
<username>os-core</username>
<password>${VSTS_FEED_TOKEN}</password>
</server>
</servers>
<activeProfiles>
<activeProfile>repositoryConfiguration</activeProfile>
</activeProfiles>
</settings>
......@@ -13,7 +13,7 @@ trigger:
- .gitignore
pool:
name: dps-build
name: Hosted Ubuntu 1604
demands: maven
steps:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment