Revision bcb6df2c
Added by Andreas Kohlbecker almost 8 years ago
modules/cdm_dataportal/jenkins-ci/deploy.sh | ||
---|---|---|
7 | 7 |
DRUPAL_VERSION="7" |
8 | 8 |
SVN_USER="edit-jenkins" |
9 | 9 |
|
10 |
GIT_REPO_URL="edit-git:/var/git/cdm-dataportal.git" |
|
11 |
|
|
10 | 12 |
|
11 | 13 |
############################################################## |
12 | 14 |
# NOTE: the ssh host should be configured in the ~/.ssh/config: |
... | ... | |
44 | 46 |
exit -1 |
45 | 47 |
fi |
46 | 48 |
|
47 |
# check if tag exists |
|
48 |
set +e # turn of "exit script on failure", since we expect that svn tags may not always exist |
|
49 |
TAG_EXISTS=(`svn info http://dev.e-taxonomy.eu/svn/tags/drupal/module-cdm_dataportal/$VERSION 2> /dev/null | grep URL`) |
|
50 |
set -e # turn on again "exit script on failure" |
|
51 |
|
|
52 |
|
|
49 |
TAG_EXISTS=$(git ls-remote --heads --tags $GIT_REPO_URL | grep "refs/tags/$VERSION") |
|
53 | 50 |
|
54 | 51 |
if [ -z "$TAG_EXISTS" ]; then |
55 |
# it is a new version number ...
|
|
52 |
# it is a new release
|
|
56 | 53 |
|
57 | 54 |
# |
58 | 55 |
# compile the sass files to css in the zen_dataportal theme |
Also available in: Unified diff
fist adaptions - incomplete