Zirkul DevSecOps
  • Welcome
  • DevSecOps
    • Getting started
    • Creating Jobs
    • Running Jobs
    • Azure DevOps Pipelines
    • Jenkins Pipelines
    • Job Script Syntax
    • Script templates
  • Zirkul Agent
    • Running the Agent
      • Command Line Interface
    • Command reference
      • Help
      • Clear
      • Var
      • Vars
      • Print
      • Date
      • Now
      • UTCNow
      • Day
      • Month
      • Year
      • Hour
      • Minute
      • Second
      • Env
      • Is base64
      • To base64
      • From base64
    • Scanner signatures
Powered by GitBook
On this page
  1. Zirkul Agent
  2. Command reference

Vars

Print the list of defined variables.

Command:

vars

Syntax:

vars

Example:

zirkul#vars
Variables:
==================================================
myVar                                              => 'Text here'
Reserved variables:
date                                               => (reserved)
now                                                => (reserved)
utcnow                                             => (reserved)
day                                                => (reserved)
month                                              => (reserved)
year                                               => (reserved)
hour                                               => (reserved)
minute                                             => (reserved)
second                                             => (reserved)
binary_path                                        => (reserved)
working_path                                       => (reserved)
Syntax:
==================================================
    var var_name = "value"
You an use variables in several different ways, here are some examples:
   In commands          # zirkul# server var_name
   In options           # zirkul(plugin)# url: var_name
   Within string values # zirkul(scanner)# url "http://{{var_name}}"
                          zirkul(scan)# summary: "My Scan for {{var_name}}"
   Private variables    # zirkul# print scan.id
                        # zirkul# print target.id
                        # zirkul# print issues
                        # zirkul# print issues[1]
                        # zirkul# print issues[1].severity
zirkul#

PreviousVarNextPrint

Last updated 1 year ago