@cryptotaxi247 / netdata-1 / commits / 6445356e7

netdata/packaging: Separate beta messages from production messages (#6282)

Merging responsibly - i will adopt if something goes wrong

Paul Emm. Katsoulakis committed Jun 14, 2019 at 16:38 UTC 6445356e7da69c178ae834b66a6cfad3bf8b18f9
1 file changed +11 -9
.travis.yml
+11 -9
@@ -21,6 +21,8 @@ install:
21 - sudo pip install git-semver
22 - docker info
23 - source tests/installer/slack.sh
24 +- export NOTIF_CHANNEL="automation-beta"
25 +- if [ "${TRAVIS_REPO_SLUG}" = "netdata/netdata" ]; then export NOTIF_CHANNEL="automation"; fi;
26
27
28
@@ -105,7 +107,7 @@ stages:
107 - sudo apt-get install -y wget lxc lxc-templates
108 - source tests/installer/slack.sh
109 before_script:
108 - - post_message "TRAVIS_MESSAGE" "Starting package preparation and publishing for ${BUILD_STRING}.${BUILD_ARCH}" "automation"
110 + - post_message "TRAVIS_MESSAGE" "Starting package preparation and publishing for ${BUILD_STRING}.${BUILD_ARCH}" "${NOTIF_CHANNEL}"
111 - export PACKAGES_DIRECTORY="$(mktemp -d -t netdata-packaging-contents-dir-XXXXXX)" && echo "Created packaging directory ${PACKAGES_DIRECTORY}"
112 - export BUILD_VERSION=$(cat packaging/version | cut -d'-' -f1) # We always build on the latest release
113 script:
@@ -155,7 +157,7 @@ stages:
157 - sudo apt-get install -y wget lxc lxc-templates
158 - source tests/installer/slack.sh
159 before_script:
158 - - post_message "TRAVIS_MESSAGE" "Starting package preparation and publishing for ${BUILD_STRING}.${BUILD_ARCH}" "automation"
160 + - post_message "TRAVIS_MESSAGE" "Starting package preparation and publishing for ${BUILD_STRING}.${BUILD_ARCH}" "${NOTIF_CHANNEL}"
161 - export PACKAGES_DIRECTORY="$(mktemp -d -t netdata-packaging-contents-dir-XXXXXX)" && echo "Created packaging directory ${PACKAGES_DIRECTORY}"
162 - export BUILD_VERSION=$(cat packaging/version | cut -d'-' -f1) # We always build on the latest release
163 script:
@@ -351,7 +353,7 @@ jobs:
353 - stage: Packaging for release
354
355 name: Generate changelog and TAG the release (only on special commit msg)
354 - before_script: post_message "TRAVIS_MESSAGE" "Packaging step for release initiated" "automation"
356 + before_script: post_message "TRAVIS_MESSAGE" "Packaging step for release initiated" "${NOTIF_CHANNEL}"
357 script:
358 - echo "GIT Branch:" && git branch
359 - echo "Last commit:" && git log -1
@@ -537,7 +539,7 @@ jobs:
539 - stage: Publish for release
540
541 name: Build & Publish docker images
540 - before_script: post_message "TRAVIS_MESSAGE" "Publishing docker images" "automation"
542 + before_script: post_message "TRAVIS_MESSAGE" "Publishing docker images" "${NOTIF_CHANNEL}"
543 script:
544 - echo "GIT Branch:" && git branch
545 - echo "Last commit:" && git log -1
@@ -554,7 +556,7 @@ jobs:
556 if: tag !~ /(-rc)/
557
558 - name: Create release draft
557 - before_script: post_message "TRAVIS_MESSAGE" "Drafting release on github" "automation"
559 + before_script: post_message "TRAVIS_MESSAGE" "Drafting release on github" "${NOTIF_CHANNEL}"
560 script:
561 - echo "GIT Branch:" && git branch
562 - echo "Last commit:" && git log -1
@@ -575,7 +577,7 @@ jobs:
577
578 name: Run coverity scan
579 # Just notify people that Nightly ops triggered, use the first step as a hook to do that
578 - before_script: post_message "TRAVIS_MESSAGE" "Starting nightly operations" "automation"
580 + before_script: post_message "TRAVIS_MESSAGE" "Starting nightly operations" "${NOTIF_CHANNEL}"
581 script: ./coverity-install.sh && ./coverity-scan.sh || echo "Coverity failed :("
582
583 - name: Kickstart files integrity testing (extended)
@@ -586,7 +588,7 @@ jobs:
588
589 # This is generating the changelog for nightly release and publish it
590 - name: Generate nightly changelog
589 - before_script: post_message "TRAVIS_MESSAGE" "Starting changelog generation for nightlies" "automation"
591 + before_script: post_message "TRAVIS_MESSAGE" "Starting changelog generation for nightlies" "${NOTIF_CHANNEL}"
592 script: ".travis/nightlies.sh"
593 after_failure: post_message "TRAVIS_MESSAGE" "<!here> Nightly changelog generation failed"
594 git:
@@ -599,7 +601,7 @@ jobs:
601 - stage: Nightly release
602
603 name: Build & Publish docker images
602 - before_script: post_message "TRAVIS_MESSAGE" "Publishing docker images for nightlies" "automation"
604 + before_script: post_message "TRAVIS_MESSAGE" "Publishing docker images for nightlies" "${NOTIF_CHANNEL}"
605 script:
606 - echo "GIT Branch:" && git branch
607 - echo "Last commit:" && git log -1
@@ -615,7 +617,7 @@ jobs:
617 env: ALLOW_SOFT_FAILURE_HERE=true
618
619 - name: Create nightly release artifacts, publish to GCS
618 - before_script: post_message "TRAVIS_MESSAGE" "Starting artifacts generation for nightlies" "automation"
620 + before_script: post_message "TRAVIS_MESSAGE" "Starting artifacts generation for nightlies" "${NOTIF_CHANNEL}"
621 script:
622 - echo "GIT Branch:" && git branch
623 - echo "Last commit:" && git log -1