Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @ Copyright IBM Corporation 2016.
* @ Copyright HCL Technologies Ltd. 2017, 2025.
* @ Copyright HCL Technologies Ltd. 2017, 2026.
* LICENSE: Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0
*/

Expand Down Expand Up @@ -309,6 +309,7 @@ private void perform(Run<?,?> build, Launcher launcher, TaskListener listener) t
final IProgress progress = new ScanProgress(listener);
final boolean suspend = m_wait;
Map<String, String> properties = getScanProperties(build,listener);
String reportName = properties.get(CoreConstants.SCAN_NAME);
boolean isAppScan360 = ((JenkinsAuthenticationProvider) m_authProvider).isAppScan360();

m_scanner.validateSettings((JenkinsAuthenticationProvider) m_authProvider,properties, progress, isAppScan360);
Expand Down Expand Up @@ -389,7 +390,8 @@ public IResultsProvider call() throws AbortException {
label = Messages.label_asoc_homepage();
}

build.addAction(new ResultsRetriever(build, provider, resolver == null ? m_name : Util.replaceMacro(m_name, resolver), asocAppUrl, label));
//resolver is null for pipeline jobs, in that case we will append time stamp to report name
build.addAction(new ResultsRetriever(build, provider, resolver == null ? reportName + "_" + SystemUtil.getTimeStamp() : Util.replaceMacro(reportName, resolver), asocAppUrl, label));

if(m_wait)
shouldFailBuild(provider,build, progress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class JenkinsUtil {

public static String getClientType() {
return "jenkins-" + SystemUtil.getOS() + "-" + getPluginVersion();
return "jenkins-" + SystemUtil.getOSUpdated() + "-" + getPluginVersion();
}

public static String getClientTypeUpdated() {
Expand Down
Loading