Merge "rename maven-properties.sh script to version-properties.sh"
This commit is contained in:
commit
a56c077f2c
@ -1,9 +1,7 @@
|
|||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
|
|
||||||
# This file is a helper for versioning and deployment of
|
# This is a script that helps us version build artifacts. It retrieves
|
||||||
# maven projects. It sets up environment variables to
|
# git info and generates version strings.
|
||||||
# pass to maven build commands so that we can generate
|
|
||||||
# versioned builds within the gerrit workflow.
|
|
||||||
|
|
||||||
# get version info from scm
|
# get version info from scm
|
||||||
SCM_TAG=`git describe --abbrev=0 --tags` || true
|
SCM_TAG=`git describe --abbrev=0 --tags` || true
|
||||||
@ -25,6 +23,6 @@ else
|
|||||||
PROJECT_VER="$SCM_TAG.$COMMITS_SINCE_TAG.$SCM_SHA";
|
PROJECT_VER="$SCM_TAG.$COMMITS_SINCE_TAG.$SCM_SHA";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "SCM_SHA=$SCM_SHA" >maven.properties
|
echo "SCM_SHA=$SCM_SHA" >version.properties
|
||||||
echo "PROJECT_VER=$PROJECT_VER" >>maven.properties
|
echo "PROJECT_VER=$PROJECT_VER" >>version.properties
|
||||||
echo "COMMITS_SINCE_TAG=$COMMITS_SINCE_TAG" >>maven.properties
|
echo "COMMITS_SINCE_TAG=$COMMITS_SINCE_TAG" >>version.properties
|
@ -110,9 +110,9 @@
|
|||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
cd gerrit
|
cd gerrit
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: gerrit/maven.properties
|
properties-file: gerrit/version.properties
|
||||||
- install-buck
|
- install-buck
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
@ -148,9 +148,9 @@
|
|||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
cd gerrit
|
cd gerrit
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: gerrit/maven.properties
|
properties-file: gerrit/version.properties
|
||||||
- install-buck
|
- install-buck
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
@ -182,9 +182,9 @@
|
|||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
cd gerrit
|
cd gerrit
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: gerrit/maven.properties
|
properties-file: gerrit/version.properties
|
||||||
- install-buck
|
- install-buck
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
|
@ -30,9 +30,9 @@
|
|||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: maven.properties
|
properties-file: version.properties
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
# fetch drush
|
# fetch drush
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: maven.properties
|
properties-file: version.properties
|
||||||
- js-build:
|
- js-build:
|
||||||
command: 'test'
|
command: 'test'
|
||||||
envlist: 'grunt'
|
envlist: 'grunt'
|
||||||
@ -47,9 +47,9 @@
|
|||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: maven.properties
|
properties-file: version.properties
|
||||||
- js-build:
|
- js-build:
|
||||||
command: 'build'
|
command: 'build'
|
||||||
envlist: 'grunt'
|
envlist: 'grunt'
|
||||||
|
@ -15,9 +15,9 @@
|
|||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: maven.properties
|
properties-file: version.properties
|
||||||
- maven-target:
|
- maven-target:
|
||||||
maven-version: Maven3
|
maven-version: Maven3
|
||||||
pom: pom.xml
|
pom: pom.xml
|
||||||
@ -42,9 +42,9 @@
|
|||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: maven.properties
|
properties-file: version.properties
|
||||||
- maven-target:
|
- maven-target:
|
||||||
maven-version: Maven3
|
maven-version: Maven3
|
||||||
pom: pom.xml
|
pom: pom.xml
|
||||||
|
@ -15,9 +15,9 @@
|
|||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: maven.properties
|
properties-file: version.properties
|
||||||
- maven-target:
|
- maven-target:
|
||||||
maven-version: Maven3
|
maven-version: Maven3
|
||||||
pom: pom.xml
|
pom: pom.xml
|
||||||
@ -42,9 +42,9 @@
|
|||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: maven.properties
|
properties-file: version.properties
|
||||||
- maven-target:
|
- maven-target:
|
||||||
maven-version: Maven3
|
maven-version: Maven3
|
||||||
pom: pom.xml
|
pom: pom.xml
|
||||||
|
@ -26,9 +26,9 @@
|
|||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
||||||
- inject:
|
- inject:
|
||||||
properties-file: maven.properties
|
properties-file: version.properties
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
/usr/local/jenkins/slave_scripts/php-laravel-build.sh
|
/usr/local/jenkins/slave_scripts/php-laravel-build.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user