• Keshav Prasad's avatar
    Sprint3 to master branch merge (#372) · da862fa9
    Keshav Prasad authored
    * Update artifacts-download.yml
    
    * Update artifacts-upload.yml
    
    * Update all.yml
    
    * Update common.yml
    
    * Update common.yml
    
    * Update common.yml
    
    * Update all.yml
    
    * Issue #000: change keycloak provision playbook
    
    * Issue #000: change keycloak role to import
    
    * Issue #000: change hosts to keycloak
    
    * Issue #000: typo in items
    
    * Issue #000: change from import to include
    
    * Issue #000: change back to include
    
    * Issue #000: Removed tags
    
    * Update keycloak provision
    
    * Update keycloak provision playbook
    
    * Update keycloak provision playbook
    
    * Update keycloak provision
    
    * Update keycloak provision
    
    * Update keycloak provision
    
    * Update keycloak provision
    
    * Update keycloak deploy
    
    * Revert changes to Jenkinsfile
    
    * Revert changes to provision keycloak
    
    * Issue #000 keycloak: deploy build package to keyclok server with custom changes
    
    * Issue #000 keycloak: installing unzip to extract keycloak
    
    * Issue #000: updated jobs setup for env order
    
    * Issue #000 feat: Moving cassandra repo url and key (#361)
    
    * Issue #000 feat: Moving cassandra repo url and key
    
    * Updated jenkins config, variables, templates, setup scripts (#367)
    
    * feat #000: Updated jenkins config files
    
    * feat #000: Removed test file
    
    * Revert adminutils config
    
    * Revert "Revert adminutils config"
    
    This reverts commit b055da7383d14cbc6fc0ebb98a180eabde07d410.
    
    * Revert "Revert "Revert adminutils config""
    
    This reverts commit 46c72250d556bd51087dff8fa63ca33f74377fb9.
    
    * Revert "Revert adminutils config"
    
    This reverts commit b055da7383d14cbc6fc0ebb98a180eabde07d410.
    
    * Revert "feat #000: Removed test file"
    
    This reverts commit 49936eb13c39fef129ef9552e9f6a4313e3c9838.
    
    * Revert "feat #000: Updated jenkins config files"
    
    This reverts commit 69af673dfd771ef14dbb37fef81403664492bd21.
    
    * Revert "Issue #000: updated jobs setup for env order"
    
    This reverts commit 9573bdd9.
    
    * Revert "Revert "Issue #000: updated jobs setup for env order""
    
    This reverts commit 2965328f592513517aa8c1d9ede741c2e63fdba8.
    
    * feat: Added updated jenkins config files
    
    * Issue #00: Changed incorrect update for neo4j branch
    
    * Removed auto trigger for deploy jobs
    
    * feat: Remove all downstream trigger for deploy
    
    * fix: Typo names in variable reference
    
    * fix: Updated jenkins secrets path
    
    * fix: Adding kafka topic, empty quotes for not mandatory vars
    
    * fix: Adding neo4j home, this value will be removed from all.yml
    
    * fix: Adding core cassandra group and dummy IP's
    
    * chore: uniformity - without quotes for deployer
    
    * feat: Removed meta, adding azcli to jenkins setup
    
    * fix: remove unused variable (#380)
    da862fa9
config.yml 1.83 KiB
version: 2.1
jobs:
  build:
    docker:
      - image: cimg/node:14.17.3
        environment:
            CHROME_BIN: "/usr/bin/google-chrome"
    steps:
      - run:
          name: Install Headless Chrome dependencies
          command: |
            sudo apt-get update \
            && sudo apt-get install -yq \
            gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
            libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
            libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \
            libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates \
            fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
      - checkout
      - run:
          name: Check current version of node
          command: node -v
      - restore_cache:
          keys:
            - node_modules_cache_{{ checksum "package-lock.json" }}
      - run:
          name: Install project dependencies
          command: |
            if [ ! -d "node_modules" ]; then
            npm ci -f
      - save_cache:
          key: node_modules_cache_{{ checksum "package-lock.json" }}
          paths:
            - node_modules
      - run:
          name: install sonar scanner
          command: sudo npm install -g sonarqube-scanner@2.5.0
      - run:
          name: Run SonarScanner
          command: sonar-scanner
      - run:
          name: Publish to NPM
          command: |
            if [ -z $CIRCLE_PR_NUMBER ]; then
              npm run build-lib
              echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
              npm publish ./dist/common-consumption
            else
              npm run build-lib
            fi