-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Milestone
Description
Enhancement Request
It would make sense to add the "auto-discovery" of more build/pipeline tools other than current GitHub/GitLab/Azure DevOps. Probably next most common is Jenkins, which could be something like:
# Jenkins
- if: ${#isNotBlank(#env('JENKINS_HOME'))}
var.set:
global.ci.name: Jenkins
global.ci.id: jenkins
global.ci.qualifiedRepoName: ${#env('GIT_URL').replaceAll('[^:]+://[^/]+/','').replaceAll('\.git$', '')}
global.ci.sourceBranch: ${#env('JOB_BASE_NAME'):#env('GIT_NAME')}
global.ci.commitSHA: ${#env('GIT_COMMIT')}
This assumes GIT is being used. Other popular build/pipelines tools I'm aware of Fortify customers using are: TeamCity, BitBucket and CircleCI.