Add credentials

This commit is contained in:
Dave Syer
2017-06-01 12:08:49 +01:00
parent 6c316c81b1
commit d2bca15aad
3 changed files with 38 additions and 17 deletions

1
.gitignore vendored
View File

@@ -15,3 +15,4 @@ target/
*.iws
*.ipr
.idea/
credentials.yml

15
.mvn/settings.xml Normal file
View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<servers>
<server>
<id>sonatype-nexus-staging</id>
<username>${env.sonatype_username}</username>
<password>${env.sonatype_password}</password>
</server>
<server>
<id>repo.spring.io</id>
<username>${env.spring_username}</username>
<password>${env.spring_password}</password>
</server>
</servers>
</settings>

View File

@@ -1,5 +1,5 @@
# fly --target spring login --concourse-url https://ci.spring.io
# fly --target spring set-pipeline --config pipeline.yml --pipeline spring-guice
# fly --target team login --concourse-url https://ci.spring.io --team-name "Spring Team"
# fly --target team set-pipeline --config pipeline.yml --pipeline spring-guice --load-vars-from credentials.yml
---
resources:
- name: source
@@ -12,19 +12,24 @@ jobs:
plan:
- get: source
trigger: true
- aggregate:
- task: maven
config:
platform: linux
image_resource:
type: docker-image
source:
repository: springio/maven-base
inputs:
- name: source
run:
path: ./mvnw
args: [install]
params:
TERM: -dumb
- task: maven
config:
platform: linux
image_resource:
type: docker-image
source:
repository: springio/maven-base
inputs:
- name: source
run:
dir: source
path: ./mvnw
args: [deploy, "-s", ".mvn/settings.xml", "-Dgpg.passphrase=${passphrase}"]
params:
TERM: -dumb
passphrase: {{passphrase}}
sonatype_username: {{sonatype-username}}
sonatype_password: {{sonatype-password}}
spring_username: {{spring-username}}
spring_password: {{spring-password}}