Skip to content

Commit

Permalink
Merge branch 'master' into JENKINS-73960
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomomdahan authored Nov 8, 2024
2 parents b456e59 + 7da034a commit 8e66cab
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private BuildForm(ItemGroup context, final PipelineBuild pipelineBuild, final Co
}
id = hashCode();
final AbstractProject<?, ?> project = pipelineBuild.getProject();
projectId = project.getFullName().hashCode();
projectId = project.getFullName().hashCode() & 0x7FFFFFFF;
final ParametersDefinitionProperty params = project.getProperty(ParametersDefinitionProperty.class);
final ArrayList<String> paramList = new ArrayList<String>();
if (params != null && params.getParameterDefinitionNames() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public boolean equals(final Object obj) {
}

public int getId() {
return name.hashCode();
return name.hashCode() & 0x7FFFFFFF;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,5 @@
<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" xmlns:i="jelly:fmt">
<st:include page="bpp.jelly" from="${it.getBuildPipelineView()}" />
<link href="${rootURL}/plugin/build-pipeline-plugin/css/main_dashboard.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
// show/hide build details
jQuery(document).ready(function() {
jQuery(".header").click(function() {
var parent = jQuery(this).parent();
var ba = parent.find(".build-actions");
var bb = parent.find(".build-body");

ba.add(bb).toggle('slow');
});
});
</script>
<st:adjunct includes="au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView.toggle-build-details" />
</j:jelly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// show/hide build details
jQuery(document).ready(function() {
jQuery(".header").click(function() {
var parent = jQuery(this).parent();
var ba = parent.find(".build-actions");
var bb = parent.find(".build-body");

ba.add(bb).toggle('slow');
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Handlebars.registerHelper('startScript', function() {
return new Handlebars.SafeString("<script>");
});

Handlebars.registerHelper('endScript', function() {
return new Handlebars.SafeString("</script>");
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,5 @@
By default we just include helpers to append script tags to your build card
-->
<![CDATA[
<script type="text/javascript">
Handlebars.registerHelper('startScript', function() {
return new Handlebars.SafeString("<scr" + "ipt>");
});
Handlebars.registerHelper('endScript', function() {
return new Handlebars.SafeString("</scr" + "ipt>");
});
</script>
]]>
<st:adjunct includes="au.com.centrumsystems.hudson.plugin.buildpipeline.extension.BuildCardExtension.build-card-script-helpers"/>
</j:jelly>

0 comments on commit 8e66cab

Please sign in to comment.