Add credentials
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -15,3 +15,4 @@ target/
|
||||
*.iws
|
||||
*.ipr
|
||||
.idea/
|
||||
credentials.yml
|
||||
15
.mvn/settings.xml
Normal file
15
.mvn/settings.xml
Normal 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>
|
||||
39
pipeline.yml
39
pipeline.yml
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user