Unified Language User Guides
iCR User Guide 4.2
iCR User Guide 4.2
  • Table of contents
    • Introduction
    • Overview
    • Authorizing Access to Your Source Code
      • Authenticating GitHub Access with a Cloud-Based VCS Repository Service
        • Authenticating GitHub Access with a Private VCS Repository
      • Authenticating GitLab Access with a Cloud-Based VCS Repository
        • Authenticating GitLab Access with a Private VCS Repository
      • Authenticating Bitbucket Access with a Cloud-Based VCS Repository
    • Using the Navigator
      • Connecting to the Navigator
      • Setting your User Password
      • The Navigator top banner
      • The Analysis Engine status
      • Selecting Your Source Code
        • Using a cloud-based VCS
        • Selecting your branch
        • Using a private VCS
        • Using a local project
        • Limiting the files to be analyzed
      • Integrating with your bug tracking system
        • Integrating with Jira - Define Your Project
        • Integrating with Jira - Authorizing Access for iCR
        • Integrating with Jira - Connecting with iCR
    • Using the Analysis Engine
      • Initiating an analysis
      • Monitoring the analysis
      • Interrupting the analysis
    • Reviewing your results
    • When you are complete
    • Integrating iCR Into Your CI/CD Workflows
      • Jenkins Workflow
        • Installing the plugin
        • Configuring the plugin
          • Creating a Personal Access Token
          • Copying Your Repository's URL
        • Viewing the Results
      • GitHub Actions Workflow
        • Workflow Overview
        • Preparing and Registering the Docker Image
        • Adding a Workflow to a Repository
        • Preparing the GitHub Workflow
          • Environment Variables
          • User Supplied Secrets
          • Setting the User Defined Secrets Values
        • Executing the Workflow
      • GitLab Workflow
        • Workflow Overview
        • Preparing the Docker Image
        • Configuring the GitLab Script variables
          • Environment Variables
          • User Supplied Variables
          • Creating a Personal Access Token
          • Setting the User Defined Variable Values
        • Executing the Workflow
      • Multiple Workflows
    • Appendix – Language Specific Fixer Lists
    • Appendix – Example Summary Report
    • Appendix - Sample Bug Listing
    • Appendix - Getting a BitBucket App Password for JENKINS
Powered by GitBook
On this page
  1. Table of contents
  2. Integrating iCR Into Your CI/CD Workflows
  3. GitLab Workflow
  4. Configuring the GitLab Script variables

Setting the User Defined Variable Values

PreviousCreating a Personal Access TokenNextExecuting the Workflow

Last updated 10 months ago

With the PAT generated, you now have all of the information you need to set the . To set them, return back to the project page for which you are .

Refer to this video to see how the GitLab script variables are defined and set.

From the video example above, let's review the steps:

  • Select Settings from the menu on the left and then select CI/CD;

  • That takes you to the page where many CI/CD parameters can be set including the variables used in the workflow yml script. Scroll down through the various options until the Variables option is displayed;

  • Click on Expand to open it;

  • To add values for the five required variables, click on Add Variable. This opens a form where you can fill in the proper data;

  • Then, enter the correct value based upon your configuration;

  • The Protect variable flag defaults to set. Click on it to remove that protection unless required for other purposes;

  • Clicking on Add Variable on this form sets the variable value;

  • Repeat this process for the all five variables.

When complete, the Variables option will show all six variables ready for use by the workflow script.

Enter the name of the variable that you are creating. It must match the name used in the scripts ;

defined previously
user supplied variables
defining the workflow