remove envinject usage from jenkins-plugin-jobs.yaml

Instead of using envinject jenkins plugin just source the
variables from within the shell builder.

Change-Id: I040495d0dda8545d60186af55f09da817f55ef51
This commit is contained in:
Khai Do 2014-06-26 10:16:48 -07:00
parent e6aa5d9f44
commit 09223af054

View File

@ -17,14 +17,8 @@
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: version.properties
- maven-target:
maven-version: Maven3
pom: pom.xml
goals: 'clean package -B'
properties:
- project-version=${{PROJECT_VER}}
source version.properties
mvn clean package -B -Dproject-version=$PROJECT_VER
publishers:
- console-log
@ -45,21 +39,14 @@
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: version.properties
- maven-target:
maven-version: Maven3
pom: pom.xml
goals: 'clean package -B'
properties:
- project-version=${{PROJECT_VER}}
- shell: |
cp ./target/{name}.hpi ./target/{name}-$PROJECT_VER.hpi
source version.properties
mvn clean package -B -Dproject-version=$PROJECT_VER
cp ./target/{name}.hpi ./target/{name}-$PROJECT_VER.hpi
publishers:
- war:
site: '{tarball-site}'
warfile: 'target/{name}-${{PROJECT_VER}}.hpi'
warfile: 'target/{name}-*.hpi'
target: 'tarballs/ci/{name}'
- console-log