Skip to content

Commit

Permalink
Merge pull request #3 from xebialabs-community/cosmetics
Browse files Browse the repository at this point in the history
Cosmetics
  • Loading branch information
jdewinne authored Nov 27, 2017
2 parents b26e4b7 + c228618 commit c589e7d
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 32 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.gradle
.idea
*.iml
build
build
supervisord.*
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ deploy:
provider: releases
api_key:
secure: cJXGWKeSLTYVOu80myYTskhCCDDSlKyrwZAhALAk5snq+r2YBlJJerOrhWTRhVk7NeKw1habdWNQu1tnZfWRyAs1fNYS/VFGqMZK6pL7h1as0Zw3zGEJs3gQ5d9lrWknS/R19qsaXHMjAeC+TRU6EauVnDuwMeEZTaZwPhsATi0=
file: build/libs/xlr-flowdock-plugin-1.0.2.jar
file_glob: true
file: build/libs/*
skip_cleanup: true
on:
all_branches: true
Expand Down
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ This document describes the functionality provided by the XL Release Flowdock pl

See the [XL Release Documentation](https://docs.xebialabs.com/xl-release/) for background information on XL Release and release orchestration concepts.

# CI status #

[![Build Status][xlr-flowdock-plugin-travis-image] ][xlr-flowdock-plugin-travis-url]
[![Codacy][xlr-flowdock-plugin-codacy-image] ][xlr-flowdock-plugin-codacy-url]
[![Code Climate][xlr-flowdock-plugin-code-climate-image] ][xlr-flowdock-plugin-code-climate-url]
[![License: MIT][xlr-flowdock-plugin-license-image] ][xlr-flowdock-plugin-license-url]

[![Github All Releases][xlr-flowdock-plugin-downloads-image] ]()

[xlr-flowdock-plugin-travis-image]: https://travis-ci.org/xebialabs-community/xlr-flowdock-plugin.svg?branch=master
[xlr-flowdock-plugin-travis-url]: https://travis-ci.org/xebialabs-community/xlr-flowdock-plugin
Expand All @@ -20,6 +18,7 @@ See the [XL Release Documentation](https://docs.xebialabs.com/xl-release/) for b
[xlr-flowdock-plugin-code-climate-url]: https://codeclimate.com/github/xebialabs-community/xlr-flowdock-plugin
[xlr-flowdock-plugin-license-image]: https://img.shields.io/badge/License-MIT-yellow.svg
[xlr-flowdock-plugin-license-url]: https://opensource.org/licenses/MIT
[xlr-flowdock-plugin-downloads-image]: https://img.shields.io/github/downloads/xebialabs-community/xlr-flowdock-plugin/total.svg



Expand All @@ -30,19 +29,17 @@ The XL Release Flowdock plugin is a XL Release plugin that adds capability for s
# Requirements #

* **Requirements**
* **XL Release** 4.8.0
* **XL Release** 6.0.x+

# Installation #

Place the plugin JAR file into your `SERVER_HOME/plugins` directory.

# Usage #

1. Go to `Settings - Configuration - Flowdock: Configuration`
![Flowdock configuration part 1](images/Flowdock_configuration_1.png?raw=true "Flowdock configuration part 1")
1. Go to `Settings - Shared configuration - Flowdock: Configuration`
2. Add a new configuration
![Flowdock configuration part 2](images/Flowdock_configuration_2.png?raw=true "Flowdock configuration part 2")
3. Provide Title (Can be anything), API url (eg: https://api.flowdock.com), Flow token (See your Flow configuration in Flowdock) and enable or disable the Flowdock configuration.
![Flowdock configuration part 3](images/Flowdock_configuration_3.png?raw=true "Flowdock configuration part 3")
![Flowdock configuration](images/Flowdock_configuration.png?raw=true "Flowdock configuration")
4. Each time XL Release stores something into the Activity logs, this will also be send to Flowdock.

24 changes: 21 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
plugins {
id "com.github.hierynomus.license" version "0.13.1"
id "com.github.hierynomus.license" version "0.14.0"
id "com.xebialabs.xl.docker" version "1.1.0"
id 'nebula.release' version '6.0.0'
}

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'

version = '1.0.2'
def apiVersion = '2017.1.0'
xlDocker {
compileImage = 'xebialabs/xlr_dev_compile'
compileVersion = 'v7.2.0.2'
runImage = 'xebialabs/xlr_dev_run'
runVersion = 'v7.2.0.1'
runPortMapping = '15516:5516'
}

def apiVersion = '2017.6.0'

if (!project.hasProperty('release.scope')) {
project.ext['release.scope'] = 'patch'
}

if (!project.hasProperty('release.useLastTag')) {
project.ext['release.useLastTag'] = true
}


repositories {
mavenLocal()
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Fri Mar 17 10:51:00 PDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-bin.zip
26 changes: 17 additions & 9 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

##############################################################################
##
Expand Down Expand Up @@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn ( ) {
warn () {
echo "$*"
}

die ( ) {
die () {
echo
echo "$*"
echo
Expand Down Expand Up @@ -154,11 +154,19 @@ if $cygwin ; then
esac
fi

# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
APP_ARGS=$(save "$@")

exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
6 changes: 0 additions & 6 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ goto fail
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args

:win9xME_args
@rem Slurp the command line arguments.
Expand All @@ -60,11 +59,6 @@ set _SKIP=2
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*
goto execute

:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$

:execute
@rem Setup the command line
Expand Down
Binary file added images/Flowdock_configuration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/Flowdock_configuration_1.png
Binary file not shown.
Binary file removed images/Flowdock_configuration_2.png
Binary file not shown.
Binary file removed images/Flowdock_configuration_3.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public static TeamInboxMessage fromAuditableDeployitEvent(ConfigurationItem ci)
TeamInboxMessage msg = new TeamInboxMessage();
StringBuffer content = new StringBuffer();
content.append("XL Release event for ").append(ci.getId());
content.append(" with message ").append((char[])ci.getProperty("message"));
content.append(" from user ").append((char[])ci.getProperty("username"));
content.append(" with message ").append((String)ci.getProperty("message"));
content.append(" from user ").append((String)ci.getProperty("username"));

msg.setContent(content.toString());
msg.setSubject("XL Release event");
Expand Down

0 comments on commit c589e7d

Please sign in to comment.