Skip to content

Commit

Permalink
Merge pull request #1 from Widen/build/buildkite
Browse files Browse the repository at this point in the history
Set up Buildkite CI pipeline
  • Loading branch information
sagebind authored Feb 27, 2019
2 parents 3a57c4a + 6099076 commit af268d5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 21 deletions.
21 changes: 21 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
steps:
- label: ":junit: Unit Tests"
command: "./gradlew check --continue ${GRADLE_SWITCHES}"
agents:
queue: builder
plugins:
docker#v1.1.1:
image: quay.io/widen/builder-gradle:1.0.0
always-pull: true

- wait

- label: ":gradle: Publish Plugin"
branches: "*.*.*"
command: ".buildkite/publish.sh"
agents:
queue: builder
plugins:
docker#v1.1.1:
image: quay.io/widen/builder-gradle:1.0.0
always-pull: true
10 changes: 10 additions & 0 deletions .buildkite/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
set -eu

GRADLE_PUBLISH_KEY=$(aws ssm get-parameter --name '/buildkite/gradle-publish-key' --with-decryption | jq -r '.Parameter.Value')
GRADLE_PUBLISH_SECRET=$(aws ssm get-parameter --name '/buildkite/gradle-publish-secret' --with-decryption | jq -r '.Parameter.Value')

echo "gradle.publish.key=$GRADLE_PUBLISH_KEY" >> ~/.gradle/gradle.properties
echo "gradle.publish.secret=$GRADLE_PUBLISH_SECRET" >> ~/.gradle/gradle.properties

./gradlew publishPlugins
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gradle-versioning
# Gradle Versioning

[![Build Status](https://travis-ci.org/Widen/gradle-versioning.svg?branch=master)](https://travis-ci.org/Widen/gradle-versioning)
[![Build Status](https://badge.buildkite.com/7fe00ad3adc6015d2bcf4325e8b470edfb67f283fa9361c9a1.svg)](https://buildkite.com/widen/gradle-versioning)

A Gradle plugin for applying project version from Git tags.

Expand Down

0 comments on commit af268d5

Please sign in to comment.