-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins ver. 2.204.1
HCL AppScan plugin version 1.2.6
-
-
HCL AppScan 1.0.1
I'm using ASoC plugin from pipeline script like below reading scan targets from simple text file. Scan targets are about 90.
stage('Run ASoC static scan') { when { environment name: 'RUN_ASOC_SCAN', value: 'true' } steps { echo "Will execute ASoC Static Scan" script{ def projectNames = readFile 'asoc-scan-target-projects.txt' def projects = projectNames.split("\n") def failedProjects = [] for(int i = 0; i < projects.size(); i++) { def project = projects[i] def scanName = project.replaceAll("/", "-") echo "Trying to run static scan of ${project}" try{ appscan application: '######REDACTED#######', credentials: "${env.ASOC_CREDENTIAL}", name: "Scan-${scanName}-", scanner: static_analyzer( hasOptions: false, target: "${WORKSPACE}/${project}" ), type: 'Static Analyzer' } catch(ex) { echo "Scan attempt of ${project} failed!. Reason is ${ex}" failedProjects.add(project) } } def totalFailed = failedProjects.size() echo "Failed to scan projects are: ${failedProjects}" echo "Total failed ${totalFailed}" } } }
But when scan is in progress like attached file(ScanRunning.png), Jenkins job returns 504 Gateway Timeout error and unable to access. Attempt of accessing job URL stops returning HTTP 504 error after scan is finished.