CI/CD Integration - Viper with Linux Image for Bitbucket


Steps to create Pipeline

Take the following steps to configure vFunction Viper to analyze the application’s binaries in the Bitbucket pipeline:

  1. Create a vFunction Service account and a vFunction Yaml for use with Viper
  2. Log into Bitbucket
  3. Navigate to the root of the repository to open the bitbucket-pipelines.yml
  4. Create a custom Pipeline after the Application has been built (post-build)
  5. Add the vFunction variables VF_HOST, VF_APPNAME, VF_CONF, VF_USER, VF_PASSWORD to this pipeline. Add the vFunction script steps to this pipeline to download and run the vFunction Viper scripts:
### Find-and-replace "https://vfunction.organization.com" below with the address to your own VF Server

### Modify the VF_APPNAME value, VF_CONF value, VF_USER value, and VF_PASSWORD values

pipelines:
  custom:
    custom-name-and-region: vFunctionContinuousViper
      - variables:
        - VF_HOST: https://vfunction.organization.com
        - VF_APPNAME: "TEST"
        - VF_CONF: /path/to/vfunction/yaml/file/viper-conf.yaml
        - VF_USER: "vFunction-Service-Account-Id"
        - VF_PASSWORD: "vFunction-Service-Account-Password"
      - step:
          runs-on:
            'ubuntu'
          script:
            - curl -LO https://vfunction.organization.com/downloads/vfunction-tools/viper-cli.zip
            - jar -xvf viper-cli.zip
            - bash viper-run-ci.sh