UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Cadet 1st Class
Cadet 1st Class
324 views

Executing the fortifyTranslate/fortifyMaven3 with Artifactory

Is it possible in a Jenkinsfile declarative pipeline to nest plugins?

 

I want to run a scan using maven - consuming Artifacts from Artifactory.

Ideally I want to do something like this:

            fortifyTranslate ( 
              buildID: "${BUILD_TAG}"
              excludeList: '"src\\test\\java\\**"'
              logFile: 'sca.log'maxHeap: '4800'
              projectScanType:
rtMavenRun (
           tool: "maven",                      // Tool name from Jenkins configuration
           pom: 'pom.xml',
           goals: 'package -DskipTests -Dmaven.test.skip=true',
           deployerId: "MAVEN_DEPLOYER",
           resolverId: "MAVEN_RESOLVER"
         )
            )

 

0 Likes
1 Reply
Commander Commander
Commander

In a plugin you are always limited to what plugin author has implemented. I would drop plugin usage for this and just execute sourceanalyzer with regular 'sh' step. That would give you full control and flexibility instead of fighting all the corner cases that plugin does not support.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.