Code Monkey home page Code Monkey logo

g-force-sf's Introduction

G-Force Salesforce Package

Installs a Client Credentials-enabled Connected App and a Lightning App that walks you through setting up a connection to a GitLab instance and create a CI/CD file variable that contains authentication information for the org the package is installed in. The variable then can be used to authenticate apexcov in a CI/CD pipeline. Works only with sandbox, scratch and Developer Edition orgs.

Installation

Via the Browser

  1. While authenticated in your org (sandbox or scratch), navigate to the installation URL and follow the instructions there.
  2. In the Setup UI, assign the G-Force permission set to your user.

Via the Command Line

  1. Login to your org using any preferred method, setting it as your default (-s flag). If you don't make it default, append -o <your_org_alias> to the following commands
  2. While authenticated to your org, run
sf package install -p [email protected] -w 5
  1. Assign the permission set with
sf org assign permset -n gfrc__G_Force

Usage

Once the permission set is assigned, you get access to the G-Force Lightning App. Open the app and follow the instructions there to connect to your Gitlab project and share the authentication information for your org with Gitlab.

The proposed workflow for using apexcov with Gitlab CI/CD is to associate branches with environments. During the package configuration, the user is presented with a list of branches from the project they selected. When the steps in the package are complete, it creates a CI/CD variable APEXCOV_CONFIG of type file with environment set to the name of the branch. The APEXCOV_CONFIG variable contains a JSON with auth info for the org suitable for passing to the -config flag of the apexcov CLI. Creating this variable for the branch is called "claiming the branch".

Note

Protected branches and those that already have an APEXCOV_CONFIG variable associated with them, don't show up in the list of branches available to be "claimed".

g-force-sf's People

Contributors

achere avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.