4af904b5d6
This is mainly cleanup to get rid of the old misleading slave label. The old worker already has the new label applied, to make switching more seamless. Change-Id: Iefd6ed3fbb696b2009e8525c4cac1f0e1aca50e3
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
# usig a freestyle project to work around jenkins bug:
|
|
# https://issues.jenkins-ci.org/browse/JENKINS-14193
|
|
|
|
- job-template:
|
|
name: '{name}-localrepo-upload'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 30
|
|
- timestamps
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
|
source version.properties
|
|
mvn clean package -Dproject-version=$PROJECT_VER
|
|
|
|
publishers:
|
|
- war:
|
|
site: '{tarball-site}'
|
|
warfile: 'target/{name}-*.jar'
|
|
target: 'tarballs/ci/{name}'
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: '{name}-mavencentral-upload'
|
|
node: release
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
TAG=`echo $ZUUL_REF | sed 's/^refs.tags.//'`
|
|
FILENAME_BIN="{name}-$TAG.jar"
|
|
|
|
# copy plugin artifacts from tarballs to local workspace
|
|
rm -rf *.jar
|
|
curl -o $FILENAME_BIN http://{tarball-site}/ci/{name}/$FILENAME_BIN
|
|
|
|
# deploy to maven repository
|
|
FILENAME_POM="{name}-$TAG.pom"
|
|
/usr/local/jenkins/slave_scripts/mavencentral-upload.sh {name} $TAG \
|
|
$FILENAME_POM $FILENAME_BIN
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-group:
|
|
name: maven-plugin-jobs
|
|
jobs:
|
|
- 'gate-{name}-build'
|
|
- '{name}-localrepo-upload'
|
|
- '{name}-mavencentral-upload'
|