Merge "rename maven-properties.sh script to version-properties.sh"

This commit is contained in:
Jenkins 2014-02-27 19:31:36 +00:00 committed by Gerrit Code Review
commit a56c077f2c
7 changed files with 27 additions and 29 deletions
modules

@ -1,9 +1,7 @@
#!/bin/bash -ex
# This file is a helper for versioning and deployment of
# maven projects. It sets up environment variables to
# pass to maven build commands so that we can generate
# versioned builds within the gerrit workflow.
# This is a script that helps us version build artifacts. It retrieves
# git info and generates version strings.
# get version info from scm
SCM_TAG=`git describe --abbrev=0 --tags` || true
@ -25,6 +23,6 @@ else
PROJECT_VER="$SCM_TAG.$COMMITS_SINCE_TAG.$SCM_SHA";
fi
echo "SCM_SHA=$SCM_SHA" >maven.properties
echo "PROJECT_VER=$PROJECT_VER" >>maven.properties
echo "COMMITS_SINCE_TAG=$COMMITS_SINCE_TAG" >>maven.properties
echo "SCM_SHA=$SCM_SHA" >version.properties
echo "PROJECT_VER=$PROJECT_VER" >>version.properties
echo "COMMITS_SINCE_TAG=$COMMITS_SINCE_TAG" >>version.properties

@ -110,9 +110,9 @@
- shell: |
#!/bin/bash -xe
cd gerrit
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: gerrit/maven.properties
properties-file: gerrit/version.properties
- install-buck
- shell: |
#!/bin/bash -xe
@ -148,9 +148,9 @@
- shell: |
#!/bin/bash -xe
cd gerrit
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: gerrit/maven.properties
properties-file: gerrit/version.properties
- install-buck
- shell: |
#!/bin/bash -xe
@ -182,9 +182,9 @@
- shell: |
#!/bin/bash -xe
cd gerrit
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: gerrit/maven.properties
properties-file: gerrit/version.properties
- install-buck
- shell: |
#!/bin/bash -xe

@ -30,9 +30,9 @@
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: maven.properties
properties-file: version.properties
- shell: |
#!/bin/bash -xe
# fetch drush

@ -11,9 +11,9 @@
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: maven.properties
properties-file: version.properties
- js-build:
command: 'test'
envlist: 'grunt'
@ -47,9 +47,9 @@
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: maven.properties
properties-file: version.properties
- js-build:
command: 'build'
envlist: 'grunt'

@ -15,9 +15,9 @@
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: maven.properties
properties-file: version.properties
- maven-target:
maven-version: Maven3
pom: pom.xml
@ -42,9 +42,9 @@
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: maven.properties
properties-file: version.properties
- maven-target:
maven-version: Maven3
pom: pom.xml

@ -15,9 +15,9 @@
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: maven.properties
properties-file: version.properties
- maven-target:
maven-version: Maven3
pom: pom.xml
@ -42,9 +42,9 @@
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: maven.properties
properties-file: version.properties
- maven-target:
maven-version: Maven3
pom: pom.xml

@ -26,9 +26,9 @@
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: maven.properties
properties-file: version.properties
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/php-laravel-build.sh