...
Here is a table summarizing the most common variables in use , details below in the relevant SCM section
...
If you’re using the GitHub Actions or the GitHub Pull Request Builder plugin for Jenkins, you can use the following mapping to environment variables provided by the pluginvariables suggested below
Sealights PR Parameter | GitHub Actions variables | GitHub | Pull Request PR Builder variables (Jenkins plugin) | Comment |
---|---|---|---|---|
pullRequestNumber |
|
| ||
latestCommit |
|
| ||
repoUrl |
|
| Something similar to: https://github.mycompany.com/myappjava/ if the pull request URL is | |
targetBranch |
|
| This is the branch name itself and might need to have a prefix added (Like: "origin/") to match the branch that was provided to SeaLights when scanning the merged branch |
...
Sealights PR Parameter | env. variables | Comment |
pullRequestNumber |
| |
latestCommit | The default environment ADO variable | |
repoUrl |
| |
targetBranch |
| This is the branch name itself and might need some string manipulation to remove a prefix added (Like: "refs/heads/") to match the branch that was provided to SeaLights when scanning the merged branch. |
Info |
---|
More details for ADO/TFS variables may be found in the official documentation: https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables |
...