Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
DO NOT create a tarball in the same directory
[releng/builder.git]
/
jjb
/
autorelease
/
autorelease-macros.yaml
diff --git
a/jjb/autorelease/autorelease-macros.yaml
b/jjb/autorelease/autorelease-macros.yaml
index 00316524b58816eca5a89db3b9e78d39bce1018f..4a34eaf5a46c023c2ff1445c0715b7b0ed205227 100644
(file)
--- a/
jjb/autorelease/autorelease-macros.yaml
+++ b/
jjb/autorelease/autorelease-macros.yaml
@@
-28,10
+28,21
@@
name: autorelease-checkout-gerrit-patch
builders:
- shell: |
name: autorelease-checkout-gerrit-patch
builders:
- shell: |
- cd ${GERRIT_PROJECT}
+ #!/bin/bash
+ set -eu -o pipefail
+
+ # If the project is autorelease then we do not need to cd
+ if [ "$GERRIT_PROJECT" != "releng/autorelease" ]; then
+ cd "$WORKSPACE/$GERRIT_PROJECT"
+ fi
+
echo "Checking out ${GERRIT_PROJECT} patch ${GERRIT_REFSPEC}..."
git fetch origin ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
echo "Checking out ${GERRIT_PROJECT} patch ${GERRIT_REFSPEC}..."
git fetch origin ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
- cd ..
+
+ # If the project is autorelease then we need to init and update submodules
+ if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then
+ git submodule update --init
+ fi
- builder:
name: autorelease-cfp
- builder:
name: autorelease-cfp
@@
-118,7
+129,7
@@
builders:
- shell: !include-raw:
- ../global-jjb/shell/lftools-install.sh
builders:
- shell: !include-raw:
- ../global-jjb/shell/lftools-install.sh
- -
include-raw-autorelease-release-versions
.sh
+ -
prepare-release
.sh
- builder:
name: autorelease-get-integration-test-variables
- builder:
name: autorelease-get-integration-test-variables
@@
-146,12
+157,11
@@
fi
- publisher:
fi
- publisher:
- # include-raw-autorelease-notify-build-failure.sh searches console log for
- # failures and emails the status to the release mailing list.
+ # Search console log for failures and email status to the release mailing list.
name: opendaylight-infra-notify-status
publishers:
- postbuildscript:
builders:
name: opendaylight-infra-notify-status
publishers:
- postbuildscript:
builders:
- - shell: !include-raw:
include-raw-autorelease-
notify-build-failure.sh
- script-only-if-succeeded:
'False'
- script-only-if-failed:
'True'
+ - shell: !include-raw: notify-build-failure.sh
+ script-only-if-succeeded:
false
+ script-only-if-failed:
true