Skip to content

Commit

Permalink
App version dropdown list is not populated in the Pipeline syntax view
Browse files Browse the repository at this point in the history
  • Loading branch information
akaryakina committed Nov 28, 2023
1 parent d17ea65 commit b76cb28
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public ListBoxModel doFillJavaVersionItems(@QueryParameter String javaVersion) {
items.add("17", "17");

if ((null == javaVersion) || (0 == javaVersion.length())) {
items.get(3).selected = true; // default to Java 8
items.get(6).selected = true; // default to Java 11

Check warning on line 103 in src/main/java/com/fortify/plugin/jenkins/steps/types/JavaScanType.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 103 is not covered by tests
}

return items;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
</f:entry>

<f:entry title="Issue template" help="/plugin/fortify/help-sscProjTemplate.html">
<script type="text/javascript" src="${rootURL}/plugin/fortify/purify.min.js"/>
<script type="text/javascript" src="${rootURL}/plugin/fortify/refresh-projects.js"/>
<div style="float:left;width:80%;">
<f:editableComboBox id="projectTemplate" name="projectTemplate" field="projectTemplate" clazz="setting-input" items="${descriptor.projectTemplateItems}" checkMethod="post"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<f:optionalBlock field="uploadSSC"
title="Upload Fortify SCA scan results to Fortify Software Security Center">
<f:entry title="Application name" help="/plugin/fortify/help-remoteSscAppName.html">
<script type="text/javascript" src="${rootURL}/plugin/fortify/purify.min.js"/>
<script type="text/javascript" src="${rootURL}/plugin/fortify/refresh-projects.js"/>
<div style="float:left;width:80%;">
<f:editableComboBox id="projectName" field="appName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<f:optionalBlock field="uploadSSC"
title="Upload Fortify SCA scan results to Fortify Software Security Center">
<f:entry title="Application name" help="/plugin/fortify/help-remoteSscAppName.html">
<script type="text/javascript" src="${rootURL}/plugin/fortify/purify.min.js"/>
<script type="text/javascript" src="${rootURL}/plugin/fortify/refresh-projects.js"/>
<div style="float:left;width:80%;">
<f:editableComboBox id="projectName" field="appName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">

<f:entry title="${%Application name}" help="/plugin/fortify/help-sscProjName.html">
<script type="text/javascript" src="${rootURL}/plugin/fortify/purify.min.js"/>
<script type="text/javascript" src="${rootURL}/plugin/fortify/refresh-projects.js"/>
<div style="float:left;width:80%;">
<f:editableComboBox id="projectName" name="appName" field="appName" clazz="setting-input project-name" items="${descriptor.applicationNameItems}" />
Expand Down
12 changes: 6 additions & 6 deletions src/main/webapp/refresh-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
isUpdateEnable = true;
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
}
}
Expand Down Expand Up @@ -94,7 +94,7 @@
}
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
}

Expand All @@ -113,7 +113,7 @@
}
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
}

Expand All @@ -132,7 +132,7 @@
}
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
}

Expand All @@ -151,7 +151,7 @@
}
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
}

Expand All @@ -178,7 +178,7 @@
window.setTimeout(scheduleUpdateCheck, 10000);
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
}
window.setTimeout(loadIssues, 0);
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/refresh-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function refreshProjectNames(url, elm)
buttonVer.disabled=false;
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
}

Expand Down Expand Up @@ -128,7 +128,7 @@ function refreshProjectVersions(url, elm)
}
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
}

Expand Down Expand Up @@ -189,7 +189,7 @@ function refreshTemplateList(url,paramList)
}
})
.catch((error) => {
console.error(error);
console.error(error.message);
});
button.disabled=false;
}
Expand Down

0 comments on commit b76cb28

Please sign in to comment.