Skip to content

Commit

Permalink
Merge pull request #6 from balamuraleedhar/master
Browse files Browse the repository at this point in the history
PLA-9132 migrate amazon-kinesis-client to concourse
  • Loading branch information
bennywarwel authored Jun 17, 2020
2 parents a45f24d + 265ab8e commit 866c157
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 8 deletions.
184 changes: 184 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
---
resource_types:

- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource

- name: email
type: docker-image
source:
repository: pcfseceng/email-resource

resources:

- name: send-email
type: email
icon: email
source:
smtp:
host: email-smtp.us-west-2.amazonaws.com
port: "587" # this must be a string
username: ((smtp-username))
password: ((smtp-password))
from: [email protected]
to:
- [email protected]

- name: amazon-kinesis-client-git
type: git
icon: github
check_every: 10s
source:
uri: https://github.com/eroad/amazon-kinesis-client.git
branch: master
username: {{github-username}}
password: {{github-password}}
ignore_paths: ['ci/*', 'README.md']

- name: amazon-kinesis-client-pullrequest
type: pull-request
check_every: 10s
source:
repository: eroad/amazon-kinesis-client
access_token: {{github-token}}
base_branch: master
ignore_paths: ['ci/*', 'README.md']

- name: pipeline-task
type: git
source:
uri: https://github.com/eroad/pipeline-task.git
branch: master
username: {{github-username}}
password: {{github-password}}

- name: release-version
type: semver
source:
initial_version: 1.7.0
key: application-ci/amazon-kinesis-client/version/version
bucket: eroad-artifact-ap-southeast-2
access_key_id: {{aws-access-key}}
secret_access_key: {{aws-secret-key}}
region_name: ap-southeast-2

- name: github-release
type: github-release
icon: github
source:
access_token: {{github-token}}
user: eroad
repository: amazon-kinesis-client

groups:
- name: build-release
jobs:
- bump-major
- bump-minor
- verify
- build-deploy

jobs:

- name: bump-minor
serial_groups: [release-version]
build_log_retention: {builds: 1}
plan:
- get: release-version
params: {bump: minor}
- put: release-version
params:
file: release-version/version

- name: bump-major
serial_groups: [release-version]
build_log_retention: {builds: 1}
plan:
- get: release-version
params: {bump: major}
- put: release-version
params:
file: release-version/version

- name: verify
build_log_retention: {builds: 10}
plan:
- in_parallel:
- get: amazon-kinesis-client-pullrequest
trigger: true
version: every
- get: release-version
params: {bump: patch}
- get: pipeline-task
- put: amazon-kinesis-client-pullrequest
params:
path: amazon-kinesis-client-pullrequest
status: pending
- task: maven-build
privileged: true
file: pipeline-task/maven-v2/tasks/maven-dind-build.yml
input_mapping:
repo: amazon-kinesis-client-pullrequest
version: release-version
params:
NEXUS_USER: {{nexus-user}}
NEXUS_PASSWORD: {{nexus-password}}
MAVEN_PHASES: verify
MAVEN_USE_VERSIONS_PLUGIN: true
on_failure:
put: amazon-kinesis-client-pullrequest
params:
path: amazon-kinesis-client-pullrequest
status: failure
on_success:
put: amazon-kinesis-client-pullrequest
params:
path: amazon-kinesis-client-pullrequest
status: success

- name: build-deploy
serial: true
build_log_retention: {builds: 5}
plan:
- in_parallel:
- get: amazon-kinesis-client-git
trigger: true
- get: pipeline-task
- get: release-version
params: {bump: patch}
- task: maven-build
privileged: true
file: pipeline-task/maven-v2/tasks/maven-dind-build.yml
input_mapping:
repo: amazon-kinesis-client-git
version: release-version
params:
NEXUS_USER: {{nexus-user}}
NEXUS_PASSWORD: {{nexus-password}}
MAVEN_GOALS: deploy
MAVEN_USE_VERSIONS_PLUGIN: true
on_failure:
put: send-email
params:
subject_text: "BUILD FAILED: ${BUILD_PIPELINE_NAME} - ${BUILD_JOB_NAME}/${BUILD_NAME}"
body_text: "${ATC_EXTERNAL_URL}/teams/main/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
on_success:
put: send-email
params:
subject_text: "BUILD SUCCESS: ${BUILD_PIPELINE_NAME} - ${BUILD_JOB_NAME}/${BUILD_NAME}"
body_text: "${ATC_EXTERNAL_URL}/teams/main/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
- in_parallel:
- put: release-version
params:
file: release-version/version
- put: amazon-kinesis-client-git
params:
repository: amazon-kinesis-client-git
only_tag: true
tag: release-version/version
- put: github-release
params:
name: release-version/version
tag: release-version/version
12 changes: 4 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>amazon-kinesis-client</artifactId>
<packaging>jar</packaging>
<name>Amazon Kinesis Client Library for Java</name>
<version>1.6.3-EROAD-5-SNAPSHOT</version>
<version>0-SNAPSHOT</version>
<description>The Amazon Kinesis Client Library for Java enables Java developers to easily consume and process data
from Amazon Kinesis.
</description>
Expand Down Expand Up @@ -92,13 +92,9 @@

<distributionManagement>
<repository>
<id>releases</id>
<url>https://nexus.eroad.io/content/repositories/releases</url>
<id>nexus</id>
<url>https://nexus.eroad.io/content/repositories/component-ci</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>https://nexus.eroad.io/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

</project>
</project>

0 comments on commit 866c157

Please sign in to comment.