Merge ~alfonsosanchezbeato/snappy-hwe-snaps/+git/build-scripts:fix-beta-version into ~snappy-hwe-team/snappy-hwe-snaps/+git/build-scripts:master

Proposed by Alfonso Sanchez-Beato
Status: Merged
Approved by: Jim Hodapp
Approved revision: 0a5ece734f7e99fc7b2fc67fca13bce941a4e490
Merged at revision: d46cf8b2bb1d939a3275104455bee59d1df67ba7
Proposed branch: ~alfonsosanchezbeato/snappy-hwe-snaps/+git/build-scripts:fix-beta-version
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/build-scripts:master
Diff against target: 66 lines (+14/-6)
2 files modified
jobs/generic-release-snap (+6/-3)
scripts/common.sh (+8/-3)
Reviewer Review Type Date Requested Status
Alfonso Sanchez-Beato continuous-integration Approve
System Enablement Bot continuous-integration Needs Fixing
Jim Hodapp (community) Approve
Review via email: mp+322359@code.launchpad.net

Commit message

The job was creating snaps with version ${NEXT_VERSION}-dev instead of ${VERSION} - fixed that.

Description of the change

The job was creating snaps with version ${NEXT_VERSION}-dev instead of ${VERSION} - fixed that.

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jim Hodapp (jhodapp) wrote :

LGTM

review: Approve
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/jobs/generic-release-snap b/jobs/generic-release-snap
2index b82bf68..29b40b6 100755
3--- a/jobs/generic-release-snap
4+++ b/jobs/generic-release-snap
5@@ -21,7 +21,7 @@ if [ -z "$VERSION" ]; then
6 exit 1
7 fi
8
9-echo "Snap to be release: $SNAP_NAME"
10+echo "Snap to be released: $SNAP_NAME"
11 echo "Version to be released: $VERSION"
12 echo "New development version: $NEXT_VERSION"
13
14@@ -63,6 +63,8 @@ bump_version_and_tag $VERSION
15 if [ "$RELEASE_FROM_STABLE" -eq 1 ]; then
16 git push origin $RELEASE_BASE_BRANCH
17 git push origin $VERSION
18+
19+ $WORKSPACE/build-scripts/scripts/trigger-lp-build.py -s $SNAP_NAME -p
20 else
21 if ! git branch -r | grep origin/stable ; then
22 git checkout -b stable origin/master
23@@ -75,11 +77,12 @@ else
24 git push origin $RELEASE_BASE_BRANCH
25 git push origin $VERSION
26
27+ # Build before we change master branch
28+ $WORKSPACE/build-scripts/scripts/trigger-lp-build.py -s $SNAP_NAME -p
29+
30 git checkout $RELEASE_BASE_BRANCH
31 sed -i -e "s/^version:\ .*/version: ${NEXT_VERSION}-dev/g" snapcraft.yaml
32 git add snapcraft.yaml
33 git commit -m "Open development for ${NEXT_VERSION}-dev"
34 git push origin $RELEASE_BASE_BRANCH
35 fi
36-
37-exec $WORKSPACE/build-scripts/scripts/trigger-lp-build.py -s $SNAP_NAME -p
38diff --git a/scripts/common.sh b/scripts/common.sh
39index 0986128..c30d2d7 100755
40--- a/scripts/common.sh
41+++ b/scripts/common.sh
42@@ -67,6 +67,13 @@ set_test_type ()
43 HW_TESTS_RESULT=1
44 fi
45
46+ # Components have the ability to disable CI tests if they can't provide any.
47+ # This is only accepted in a few cases and should be generally avoided.
48+ CI_TESTS_DISABLED=no
49+ if [ -e "$tmp_srcdir"/src/.ci_tests_disabled ]; then
50+ CI_TESTS_DISABLED=yes
51+ fi
52+
53 rm -rf "$tmp_srcdir"
54
55 if [ "$FAIL" = yes ]; then
56@@ -74,9 +81,7 @@ set_test_type ()
57 exit 1
58 fi
59
60- # Components have the ability to disable CI tests if they can't provide any.
61- # This is only accepted in a few cases and should be generally avoided.
62- if [ -e "$tmp_srcdir"/src/.ci_tests_disabled ]; then
63+ if [ "$CI_TESTS_DISABLED" = yes ]; then
64 echo "WARNING: Component has no CI tests so not running anything here"
65 exit 0
66 fi

Subscribers

People subscribed via source and target branches