Good day to everybody, I have a problem running a Fortify On Demand pipneline in Azure Devops. It is the IWA-JAVA application for DEMO.
The error in question is the following
"Error: LinkageError occurred while loading main class com.fortify.scancentral.launcher.Launcher java.lang.UnsupportedClassVersionError: com/fortify/scancentral/launcher/Launcher has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
# Starter pipeline # Start with a minimal pipeline that you can customize to build and deploy your code. # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml trigger: - main pool: vmImage: ubuntu-latest steps: - task: Maven@4 inputs: mavenPomFile: 'pom.xml' publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' javaHomeOption: 'JDKVersion' jdkVersionOption: '17.0.13' mavenVersionOption: 'Default' mavenOptions: '-Xmx3072m' mavenAuthenticateFeed: false effectivePomSkip: false sonarQubeRunAnalysis: false - task: FortifyOnDemandStatic@9 inputs: FortifyProjects: '$(Build.Repository.LocalPath)' FodConnection: 'AzuredevopsApi' # create Azure DevOps Service connection with name FoD_AMS ReleaseOptions: '0' ReleaseId: 1308133 # update FoD RELEASE ID EntitlementSelection: '1' EntitlementPreference: '0' OverrideScanSettings: '1' InProgressScanActionType: '2' RemediationScanPreference: '2' BuildType: 'mvn' TechnologyStackJavaOne: '17' PolicyFailAction: '0'
I can't find the solution and I would be very grateful to receive your support.
Saludos.
Jorge
CyberSecurity Practitioner and Cloud Enthusiast