Fix intermittent jenkins plugin build failure

* modules/openstack_project/files/jenkins_job_builder/config/jenkins-plugin-jobs.yaml
Changed from maven job to freestyle job. Changing to freestyle job removes
the need to have a work around for JENKINS-14193 bug

* modules/jenkins/files/slave_scripts/maven-properties.sh
remove workaround for jenkins bug

Fixes: bug #1212470
Change-Id: Ia78ea699c70efc08f6dd93bde321faece99900f1
This commit is contained in:
Khai Do 2013-08-14 17:40:43 -07:00
parent ea4949b90b
commit de6331138a
2 changed files with 26 additions and 27 deletions

View File

@ -5,9 +5,6 @@
# pass to maven build commands so that we can generate
# versioned builds within the gerrit workflow.
# work around for jenkins bug: https://issues.jenkins-ci.org/browse/JENKINS-14193
/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org http://zuul.openstack.org
# get version info from scm
SCM_TAG=`git describe --abbrev=0 --tags` || true
SCM_SHA=`git rev-parse --short HEAD` || true

View File

@ -1,9 +1,8 @@
# need to run gerrit-git-prep in maven-properties.sh script to work
# around jenkins bug: https://issues.jenkins-ci.org/browse/JENKINS-14193
# usig a freestyle project to work around jenkins bug:
# https://issues.jenkins-ci.org/browse/JENKINS-14193
- job-template:
name: 'gate-{name}-build'
project-type: maven
node: precise
wrappers:
@ -11,25 +10,26 @@
timeout: 30
fail: true
- timestamps
- inject:
script-file: /usr/local/jenkins/slave_scripts/maven-properties.sh
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
- inject:
properties-file: maven.properties
maven:
maven-name: Maven3
root-module:
group-id: '{maven-group-id}'
artifact-id: '{name}'
root-pom: pom.xml
goals: 'clean package -Dproject-version=${{PROJECT_VER}}'
- maven-target:
maven-version: Maven3
pom: pom.xml
goals: 'clean package'
properties:
- project-version=${{PROJECT_VER}}
publishers:
- console-log
- job-template:
name: '{name}-hpi-artifact'
project-type: maven
node: precise
wrappers:
@ -37,18 +37,20 @@
timeout: 30
fail: true
- timestamps
- inject:
script-file: /usr/local/jenkins/slave_scripts/maven-properties.sh
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
- inject:
properties-file: maven.properties
maven:
maven-name: Maven3
root-module:
group-id: '{maven-group-id}'
artifact-id: '{name}'
root-pom: pom.xml
goals: 'clean package -Dmaven.test.skip=true -Dproject-version=${{PROJECT_VER}}'
- maven-target:
maven-version: Maven3
pom: pom.xml
goals: 'clean package'
properties:
- project-version=${{PROJECT_VER}}
postbuilders:
- shell: |