def findItem(key){
def defval='some value'
someMap.each{k,v->
if(k.startsWith(key)){
return v
}
#!/bin/bash | |
set -e | |
#set -x | |
RDECK_BASE=${RDECK_BASE:-$(pwd)} | |
CONFFILE=$1 | |
H2JAR=$2 | |
if [ -z "$CONFFILE" ] ; then | |
if [ -f ${RDECK_BASE}/server/config/rundeck-config.properties ] ; then | |
CONFFILE=${RDECK_BASE}/server/config/rundeck-config.properties |
FROM ubuntu:16.04 | |
RUN apt-get -y update && \ | |
apt-get -y install openjdk-8-jdk apt-transport-https curl openssh-client uuid-runtime | |
ENV RDECK_BASE=/var/lib/rundeck | |
RUN mkdir $RDECK_BASE | |
RUN echo "deb https://rundeck.bintray.com/rundeck-deb /" | tee -a /etc/apt/sources.list |
#!/bin/bash | |
#/ does something ... | |
#/ usage: [..] | |
set -euo pipefail | |
IFS=$'\n\t' | |
readonly ARGS=("$@") | |
# <http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/> | |
# <http://redsymbol.net/articles/unofficial-bash-strict-mode/> |
Goals:
Data passing: Workflow steps can export data values that are made available to subsequent steps. Data capture: Step logger system can filter/process output log events to extract useful data values and use the data passing feature to pass them along.
Tasks:
Data Passing:
description: Admin, all access. | |
context: | |
project: '.*' # all projects | |
for: | |
resource: | |
- allow: '*' # allow read/create all kinds | |
adhoc: | |
- allow: '*' # allow read/running/killing adhoc jobs | |
job: | |
- match: |
[~/devel/test-g255] 💩 ls | |
grails-2.5.5 grails-2.5.5.zip | |
[~/devel/test-g255] 🍺 which grails | |
/Users/greg/devel/test-g255/grails-2.5.5/bin/grails | |
[~/devel/test-g255] 🍺 grails create-app --stacktrace | |
| Configuring classpath | |
:: problems summary :: | |
:::: WARNINGS | |
module not found: org.codehaus.groovy#groovy-all;2.4.4 | |
==== grailsPlugins: tried |
description: Project scope for group | |
context: | |
project: '.*' | |
for: | |
job: | |
- equals: | |
group: 'example' | |
name: 'Restart' | |
allow: [run,read] | |
- equals: |