0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 09:11:50 +00:00

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

Merging responsibly - i will adopt if something goes wrong
This commit is contained in:
Paul Emm. Katsoulakis 2019-06-14 16:38:28 +03:00 committed by GitHub
parent 924c18b173
commit 6445356e7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,8 @@ install:
- sudo pip install git-semver
- docker info
- source tests/installer/slack.sh
- export NOTIF_CHANNEL="automation-beta"
- if [ "${TRAVIS_REPO_SLUG}" = "netdata/netdata" ]; then export NOTIF_CHANNEL="automation"; fi;
@ -105,7 +107,7 @@ stages:
- sudo apt-get install -y wget lxc lxc-templates
- source tests/installer/slack.sh
before_script:
- post_message "TRAVIS_MESSAGE" "Starting package preparation and publishing for ${BUILD_STRING}.${BUILD_ARCH}" "automation"
- post_message "TRAVIS_MESSAGE" "Starting package preparation and publishing for ${BUILD_STRING}.${BUILD_ARCH}" "${NOTIF_CHANNEL}"
- export PACKAGES_DIRECTORY="$(mktemp -d -t netdata-packaging-contents-dir-XXXXXX)" && echo "Created packaging directory ${PACKAGES_DIRECTORY}"
- export BUILD_VERSION=$(cat packaging/version | cut -d'-' -f1) # We always build on the latest release
script:
@ -155,7 +157,7 @@ stages:
- sudo apt-get install -y wget lxc lxc-templates
- source tests/installer/slack.sh
before_script:
- post_message "TRAVIS_MESSAGE" "Starting package preparation and publishing for ${BUILD_STRING}.${BUILD_ARCH}" "automation"
- post_message "TRAVIS_MESSAGE" "Starting package preparation and publishing for ${BUILD_STRING}.${BUILD_ARCH}" "${NOTIF_CHANNEL}"
- export PACKAGES_DIRECTORY="$(mktemp -d -t netdata-packaging-contents-dir-XXXXXX)" && echo "Created packaging directory ${PACKAGES_DIRECTORY}"
- export BUILD_VERSION=$(cat packaging/version | cut -d'-' -f1) # We always build on the latest release
script:
@ -351,7 +353,7 @@ jobs:
- stage: Packaging for release
name: Generate changelog and TAG the release (only on special commit msg)
before_script: post_message "TRAVIS_MESSAGE" "Packaging step for release initiated" "automation"
before_script: post_message "TRAVIS_MESSAGE" "Packaging step for release initiated" "${NOTIF_CHANNEL}"
script:
- echo "GIT Branch:" && git branch
- echo "Last commit:" && git log -1
@ -537,7 +539,7 @@ jobs:
- stage: Publish for release
name: Build & Publish docker images
before_script: post_message "TRAVIS_MESSAGE" "Publishing docker images" "automation"
before_script: post_message "TRAVIS_MESSAGE" "Publishing docker images" "${NOTIF_CHANNEL}"
script:
- echo "GIT Branch:" && git branch
- echo "Last commit:" && git log -1
@ -554,7 +556,7 @@ jobs:
if: tag !~ /(-rc)/
- name: Create release draft
before_script: post_message "TRAVIS_MESSAGE" "Drafting release on github" "automation"
before_script: post_message "TRAVIS_MESSAGE" "Drafting release on github" "${NOTIF_CHANNEL}"
script:
- echo "GIT Branch:" && git branch
- echo "Last commit:" && git log -1
@ -575,7 +577,7 @@ jobs:
name: Run coverity scan
# Just notify people that Nightly ops triggered, use the first step as a hook to do that
before_script: post_message "TRAVIS_MESSAGE" "Starting nightly operations" "automation"
before_script: post_message "TRAVIS_MESSAGE" "Starting nightly operations" "${NOTIF_CHANNEL}"
script: ./coverity-install.sh && ./coverity-scan.sh || echo "Coverity failed :("
- name: Kickstart files integrity testing (extended)
@ -586,7 +588,7 @@ jobs:
# This is generating the changelog for nightly release and publish it
- name: Generate nightly changelog
before_script: post_message "TRAVIS_MESSAGE" "Starting changelog generation for nightlies" "automation"
before_script: post_message "TRAVIS_MESSAGE" "Starting changelog generation for nightlies" "${NOTIF_CHANNEL}"
script: ".travis/nightlies.sh"
after_failure: post_message "TRAVIS_MESSAGE" "<!here> Nightly changelog generation failed"
git:
@ -599,7 +601,7 @@ jobs:
- stage: Nightly release
name: Build & Publish docker images
before_script: post_message "TRAVIS_MESSAGE" "Publishing docker images for nightlies" "automation"
before_script: post_message "TRAVIS_MESSAGE" "Publishing docker images for nightlies" "${NOTIF_CHANNEL}"
script:
- echo "GIT Branch:" && git branch
- echo "Last commit:" && git log -1
@ -615,7 +617,7 @@ jobs:
env: ALLOW_SOFT_FAILURE_HERE=true
- name: Create nightly release artifacts, publish to GCS
before_script: post_message "TRAVIS_MESSAGE" "Starting artifacts generation for nightlies" "automation"
before_script: post_message "TRAVIS_MESSAGE" "Starting artifacts generation for nightlies" "${NOTIF_CHANNEL}"
script:
- echo "GIT Branch:" && git branch
- echo "Last commit:" && git log -1