Collection of Syndesis extensions
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
syndesis-connector-irc
syndesis-connector-log
syndesis-connector-openshift
syndesis-connector-telegram
syndesis-connector-timer
syndesis-connector-webhook
syndesis-extension-body
syndesis-extension-delay
syndesis-extension-json-dataformat
syndesis-extension-log-body chore: fix data shapes Jul 5, 2018
syndesis-extension-log
syndesis-extension-loop
syndesis-extension-manage-headers Extensions should build against an old released Syndesis version. #59 Jun 7, 2018
syndesis-extension-rng-error
syndesis-extension-script
syndesis-extension-split
syndesis-extension-telegrambot TelegramBot Step extension. Jun 26, 2018
syndesis-extension-threads
syndesis-extension-throttle
syndesis-extension-yaml-dataformat
syndesis-library-jdbc-driver
.gitignore
LICENSE
README.MD
build_and_deploy.sh
pom.xml

README.MD

Syndesis Extension

Build:

mvn clean install

if you like to build the extensions against a particular Syndesis version please set the syndesis.version property accordingly in the pom.xml.

Build with automatic Syndesis version detection:

Another option is to use the syndesisServerUrl to pass the url of a running Syndesis instance and let maven figure the right version out for you:

mvn clean install -DsyndesisServerUrl=https://your.syndesis.server.url

or more conveniently, if you are logged in with oc command on Syndesis and use a unix like OS:

mvn clean install -DsyndesisServerUrl="https://$(oc get route syndesis  --template={{.spec.host}})"

if you are using a developing environment chances are that you do not have a trusted certificate for your Syndesis server, in that case you can disable SSL validation by:

mvn clean install -DsyndesisServerUrl=https://your.syndesis.server.url -DsyndesisServerUrl.disableSSLvalidation=true

or

mvn clean install -DsyndesisServerUrl="https://$(oc get route syndesis  --template={{.spec.host}})" -DsyndesisServerUrl.disableSSLvalidation=true

Deploy:

Either manually or with this companion script that uses jq to parse json objects:

FILE_VERSION="1.0.0"
EXTENSIONS=$(ls -d */)

for i in $EXTENSIONS
do
echo
FILE_NAME="${i::-1}" # removing trailing slash

EXTENSION_ID=$(curl "https://$(oc get route syndesis  --template={{.spec.host}})/api/v1/extensions" \
  -H "Authorization: Bearer $(oc whoami -t)"\
  -H 'Accept: */*'\
  --insecure\
  --form file=@"$FILE_NAME/target/$FILE_NAME-$FILE_VERSION.jar;type=application/x-java-archive;filename=$FILE_NAME-$FILE_VERSION.jar" | jq -r .id)

curl -X POST "https://$(oc get route syndesis  --template={{.spec.host}})/api/v1/extensions/$EXTENSION_ID/install" \
  --insecure\
  -H "Authorization: Bearer $(oc whoami -t)"
done