Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add telemetry to see target commands and platforms used by users #52

Merged
merged 1 commit into from
Jan 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def CTL_path = "codeready-workspaces-chectl"
def SHA_CTL = "SHA_CTL"
def GITHUB_RELEASE_NAME=""

environment {
SEGMENT_WRITE_KEY = credentials('segment-write-key')
}

timeout(20) {
node("${buildNode}"){
stage "Checkout crw-operator deploy"
Expand Down Expand Up @@ -145,6 +149,7 @@ timeout(20) {
git diff -u package.json
git tag -f "''' + CUSTOM_TAG + '''-redhat"
rm -fr lib/ node_modules/ templates/ tmp/ tsconfig.tsbuildinfo dist/
sed -i "s|INSERT-KEY-HERE|$SEGMENT_WRITE_KEY|g" src/hooks/analytics/analytics.ts
yarn && npx oclif-dev pack -t ''' + platforms + '''
# move from *-redhat/ (specific folder, generic name) to redhat/ (generic folder, specific name)
mv dist/channels/*redhat dist/channels/redhat
Expand Down