blob: e9fe49be9bf4a269d8ccdb0ba1d2e09da41968a1 [file] [log] [blame]
- job-template:
name: 'gatling-git-sbt-{branch}'
description: 'Gatling Git extension {branch} branch build with Sbt'
node: sbt
targets: compile test assembly
wrappers:
- timeout:
timeout: 30
fail: true
- timestamps
properties:
- build-discarder:
days-to-keep: 20
artifact-days-to-keep: 20
- authorization:
anonymous:
- job-discover
- job-read
- job-extended-read
scm:
- git:
remotes:
- origin:
url: https://review.gerrithub.io/GerritForge/gatling-git
branches:
- origin/{branch}
submodule:
recursive: true
parent-credentials: true
skip-tag: true
triggers:
- pollscm:
cron: 'H/50 * * * *'
builders:
- shell: |
sbt -no-colors compile test assembly
# Extract version information
JARS=$(find . -name 'gatling-git*jar')
for jar in $JARS
do
VERSION=$(git describe --always origin/master)
echo -e "Implementation-Version: $VERSION" > MANIFEST.MF
jar ufm $jar MANIFEST.MF && rm MANIFEST.MF
echo "$VERSION" > $jar-version
done
publishers:
- archive:
artifacts: '**/target/**/gatling-git-extension.jar*'
- project:
name: gatling-git-sbt-{branch}
jobs:
- 'gatling-git-sbt-{branch}':
branch:
- master