Pipeline parameters
Code Pipeline Webhook parameters
These values are passed via the Code Pipeline Webhook. Each pipeline is setup as parameterized to accept the corresponding values as input.
The first column contains the name as configured in the Jenkins job configuration. The following columns show the variable names used within the code of the corresponding .jenkinsfile/.groovy file.
Jenkins configuration | Basic Pipeline | Shared Library Examples | Combined Pipelines | Source / Name of parameter passed by Webhook | Description |
---|---|---|---|---|---|
ISPW_Stream | ISPW_Stream | ispwStream | ispwStream | $$stream$$ | Code Pipeline stream |
ISPW_Application | ISPW_Application | ispwApplication | ispwApplication | $$application$$ | Code Pipeline application |
ISPW_SubApplication | ISPW_SubApplication | ispwSubApplication | ispwSubApplication | $$subapplication$$ | Code Pipeline subapplication |
ISPW_Release | ISPW_Release | ispwRelease | ispwRelease | $$release$$ | Code Pipeline release - depending on the circumstances, the release may be empty |
ISPW_Assignment | ISPW_Assignment | ispwAssignment | ispwAssignment | $$assignment$$ | Code Pipeline assignment |
ISPW_Set_id | not used | ispwSet | ispwSet | $$set$$ | Code Pipeline set that was created for a specific operation, like generate or promote |
ISPW_Src_Level | ISPW_Src_Level | ispwSrcLevel | ispwSrcLevel | $$level$$ | Level in the Code Pipeline life cycle |
ISPW_Owner | ISPW_Owner | ispwOwner | ispwOwner | $$owner$$ | TSO user id of the user performing the Code Pipeline operation triggering webhook |
ISPW_Operation | not used | not used | ISPW_Operation | $$operation$$ | Operation in Code Pipeline triggering the webhook, like generate or promote |
Abend-AID webhook parameters
The following variables are available for substituting values from Abend-AID:
Variable | Description |
---|---|
$$pgName$$ | The names of the abending program in Abend-AID. |
$$loadMon$$ | The name of the load module in Abend-AID. |
$$userId$$ | The user ID of the abending job in Abend-AID. |
$$compDat$$ | The compile date of the program being processed in Abend-AID. |
$$abndDate$$ | The date of the abend dump in Abend-AID. |
$$abndTime$$ | The time of the abend dump in Abend-AID. |
$$abndCode$$ | The system or user abnormal termination code in Abend-AID. |
$$jobname$$ | The name of the abending job in Abend-AID. |
$$jobNum$$ | The JESID or job number in Abend-AID. |
$$region$$ | The SYSID of the abending job in Abend-AID. |
$$dup$$ | This is a duplicate dump and was suppressed during processing in Abend-AID. |
$$tran$$ | The transaction identifier for the abending transaction in Abend-AID. |
$$term$$ | The four-character identification number for the terminal at which the abend occurred in Abend-AID. |
$$url$$ | The URL and PORT number location of the Abend-AID viewer in Abend-AID. |
$$notificationId$$ | The ID associated with the notification in Abend-AID. |
Configuration parameters
These parameters are dependent on environment and configuration. Unlike the previous set of parameters, they will not differ from build to build, and may all be consistent for every job/pipeline in the installation.
- In the basic pipeline example they are partly defined as parameters using default values or partly set as global variables in the code.
- In the examples using Shared Libraries they are passed on the call to the Shared Library script or set from the pipelineConfig.yml file.
Jenkins configuration / pipeline script call
Jenkins configuration | Basic Pipeline variable | Shared Library variable | Description / Value to use |
---|---|---|---|
CES_Token | CES_Token | cesToken | |
Jenkins_CES_Token | Jenkins_CES_Token | jenkinsCesToken | |
HCI_Conn_ID | HCI_Conn_ID | hciConnectionId | |
HCI_Token | HCI_Token | hciToken | |
CC_Repository | CC_Repository | ccRepository | Code Coverage repository dataset to use for Code Coverage data collection during test execution. |
Git_Project | Git_Project | gitProject | Name of the GitHub project used to store Total Test repositories. (GitHub repository URLs are of the form https://github.com/<project>/<repository>) |
Git_Credentials | Git_Credentials | gitCredentials | ID of Jenkins (userid and password) credentials for the GitHub repository used to store Total Test assets |
Set in script / via pipelineConfig.yml
Basic Pipeline | pipelineConfig.yml | Description / Value to use | Fixed value if applicable |
---|---|---|---|
Git_URL | git.url | URL to the git repository server. In the examples https://github.com/. In the basic example the value is set to the GitHub URL plus the GIT_Project | |
Git_Ttt_Repo | git.tttRepoExtension | Basic pipeline: Full name of the TTT repository, built from the ISPW_Stream, ISPW_Application and the extension '_Total_Tests.git'. Shared Library: The extension to use to build the repository name. | |
Git_Branch | git.branch | Branch of the Git repository to use for Total Test | |
SQ_Scanner_Name | sq.scannerName | Name of the SonbarQube scanner as defined in the Jenkins Global Tool Configuration | |
SQ_Server_Name | sq.serverName | Name of the SonarQube server as defined in the Jenkins System Configuration | |
MF_Source | ispw.mfSourceFolder | Name of the workspace folder containing the sources downloaded from the mainframe | 'MF_Source' (set by Code Pipeline downloader plugin) |
XLR_Template | xlr.template | Name of the XL Release release template to trigger after successful execution of a 'promote pipeline' | |
XLR_User | xlr.user | Name of the credentials defined with the XL Release configuration | |
TTT_Base_Folder | ttt.general.folder | Name of workspace folder to clone the Total Test repository into. Creating a separate sub folder simplifies using the Total Test step. | |
TTT_Vt_Folder | ttt.virtualized.folder | Sub folder of the test base folder containing virtualized test scenarios. Pointing the Total Test step to this sub folder allows targeted execution of virtualized tests only. | |
TTT_Vt_Environment | ttt.virtualized.environment | ID of an environment defined in the CES repository for Total Test. This will execute only scenarios (.context files) matching the environment. | |
ttt.virtualized.targetSonarResults | In case several Total Test steps are executed within one build, the results file of any previous step would be replaced by the most current version. To prevent this, the examples rename the original file into this new name. | ||
ttt.nonVirtualized.folder | Sub folder of the test base folder containing non virtualized test scenarios. Pointing the Total Test step to this sub folder allows targeted execution of virtualized tests only. | ||
ttt.nonVirtualized.environment | ID of an environment defined in the CES repository for Total Test. This will execute only scenarios (.context files) matching the environment. | ||
ttt.nonVirtualized.targetSonarResults | In case several Total Test steps are executed within one build, the results file of any previous step would be replaced by the most current version. To prevent this, the examples rename the original file into this new name. | ||
TTT_Sonar_Results_File | ttt.general.sonarResultsFolder + ttt.general.sonarResultsFile | Name and path within the workspace of the Total Test results file in SonarQube format | 'generated.cli.suite.sonar.xml' (set by the Total Test plugin) |
CES_Url | ces.url | URL to the CES to use for Total Test or Code Pipeline operations and defined in Jenkins System Configuration | |
ISPW_Runtime | ispw.runtime | Name of the Code Pipelineruntime configuration to use. Determined by your Code Pipelineadministrator. | |
ISPW_Changed_Programs_File | ispw.changedProgramsFile | Name of the .json file containing the list of components affected by an Code Pipeline step | 'changedPrograms.json' (set by Code Pipeline plugins) |