0

I'm setting up a new Jenkins master server and configuring it using the Jenkins Configuration as code (JCASC) plugin. https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/README.md

I've configured most plugins with JCASC, based on documentation and examples inside the project, but I can't find the syntax for configuring plugin 'Fortify Jenkins Plugin' version 18.10.

I need to set these properties: URL of the remote Fortify server, authentication token (generated on the fortify server) and which template to use.

Can anyone assist with an example or syntax for the yml file used by the JCASC plugin for Fortify plugin?

d4nyll
  • 11,811
  • 6
  • 54
  • 68
JoeD
  • 1
  • 1

2 Answers2

0

I don't know if fortify-plugin is compatible with JCasC, it might be or it might need some modifications. That said, if it is compatible, then the configuration export should work for it.

So, spin up a Jenkins instance, install the plugin, configure whatever you want in the Jenkins UI and then go to the CasC page and use the configuration export. That should give you a JCasC file containing your setup.

Alternatively, you can try the JCasC Schema experimental feature. It's a JSON schema generated by Jenkins that you can use in your YAML editor for autocompletion. More information here.

amuniz
  • 3,292
  • 2
  • 20
  • 22
0

we have just released an update of the Fortify plugin with support for JCasC. Keep in mind, versions of the plugin prior to v21.1.36 were unable to support it, we had to make changes to make it happen.

You can find official documentation on how to use our configuration elements here. There's one correction to the documentation, though. Our top level configuration element is called fortifyPlugin instead of fortify mentioned in the documentation. It is going to be corrected in the next documentation update.

Here's a sample configuration for your quick reference:

unclassified:
  fortifyPlugin:
    url: "https://qa-plg-ssc3.prgqa.hpecorp.net:8443/ssc"
    token: "3ab8c774-0850-483b-8be6-2907722a81d8"
    proxyConfig:
      proxyUrl: "web-proxy.us.softwaregrp.net:8080"
    projectTemplate: "Prioritized High Risk Issue Template"
    connectTimeout: "10"
    readTimeout: "20"
    writeTimeout: "10"
    breakdownPageSize: "50"
    ctrlToken: "5176d380-26ac-430f-95d7-0a2272cf3297"