Skip to content

Commit

Permalink
feat(FEC-10291): migrate analytics plugins injection from kaltura Pla…
Browse files Browse the repository at this point in the history
…yer to server (#75)

Add kava plugin to the deployment flow

Solves FEC-10291

Related to kaltura/kaltura-player-js#337
  • Loading branch information
yairans authored Jul 16, 2020
1 parent 134fc24 commit a237449
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ cache:
- node_modules

before_install:
- export DISPLAY=:99.0
- chmod +x ./scripts/travis.sh
- export DISPLAY=:99.0
- chmod +x ./scripts/travis.sh

script: ./scripts/travis.sh

Expand Down Expand Up @@ -52,6 +52,10 @@ jobs:
on:
tags: true
branch: master
after_deploy:
- currentVersion=$(npx -c 'echo "$npm_package_version"')
- chmod +x ./scripts/after_deploy.sh
- ./scripts/after_deploy.sh "kava" "$currentVersion" "$JENKINS_TAG_TOKEN"
# publish canary package if on master
- stage: Release canary
if: (branch = master) AND (type != pull_request) AND commit_message !~ /^chore\(release\)/
Expand All @@ -65,6 +69,11 @@ jobs:
on:
tags: false
branch: master
after_deploy:
- currentVersion=$(npx -c 'echo "$npm_package_version"')
- echo $currentVersion
- chmod +x ./scripts/after_deploy.sh
- ./scripts/after_deploy.sh "kava" "$currentVersion" "$JENKINS_CANARY_TOKEN"
# Required tests
- stage: Tests
if: (branch = master) OR (tag IS present) OR (type = pull_request)
Expand Down
2 changes: 2 additions & 0 deletions scripts/after_deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
curl -k -d "{'name':$1, 'version':$2, 'source':'npm'}" -H "Content-Type: application/json" -X POST https://jenkins.ovp.kaltura.com/generic-webhook-trigger/invoke?token=$3

0 comments on commit a237449

Please sign in to comment.