Skip to content
Closed
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
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ version "1.3.0-SNAPSHOT"
description "XNAT Pipeline Engine UI Plugin"

def pipelineVersion = "1.8.10"
def pipelineXnatTools = "1.9.0"
def pipelineDependencyVersion = "1.0"

repositories {
Expand All @@ -47,9 +48,9 @@ repositories {
configurations {
all {
exclude group: "junit"
exclude group: "net.logstash.logback"
// exclude group: "net.logstash.logback"
exclude group: "org.slf4j", module: "log4j-over-slf4j"
exclude group: "org.slf4j", module: "slf4j-log4j12"
// exclude group: "org.slf4j", module: "slf4j-log4j12"
exclude group: "org.slf4j", module: "slf4j-simple"
}
implementation.extendsFrom(implementAndInclude)
Expand Down Expand Up @@ -139,7 +140,7 @@ dependencies {
implementAndInclude ("org.nrg.xnat.pipeline:xnat-pipeline:${pipelineVersion}") {
transitive = false
}
implementAndInclude ("org.nrg.xnat.pipeline:xnat-tools:${pipelineVersion}"){
implementAndInclude ("org.nrg.xnat.pipeline:xnat-tools:${pipelineXnatTools}"){
transitive = false
}
implementAndInclude ("com.lowagie:itext") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ public void setPipelineLaunchParameters(final PipelineLaunchParameters pipelineL
this.pipelineLaunchParameters = pipelineLaunchParameters;
}

public void setPipelineName(String pipelineName) {
pipelineLaunchParameters.setPipelineName(pipelineName);
}

public void notify(String... emails) {
pipelineLaunchParameters.notificationEmailId(emails);
}

public void setParameterFile(String parameterFile) {
pipelineLaunchParameters.setParameterFile(parameterFile);
}

public void setBuildDir(String path) {
if (StringUtils.isBlank(path)) {
return;
Expand All @@ -76,7 +88,9 @@ public void setNeedsBuildDir(boolean needsBuildDir) {
pipelineLaunchParameters.setNeedsBuildDir(needsBuildDir);
}


public void setSupressNotification(boolean supressNotification) {
pipelineLaunchParameters.setSupressNotification(supressNotification);
}

/*
* Use this method when you want the job to be executed after schedule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@
<!-- if not a project owner, hide the tab added to the project page -->
<script>
console.log("Not found and removing");
jq(document).find('a[href=#Pipelines]').parents('li').hide();
$('ul.yui-nav li:has(a[href$="Pipelines"])').remove();
$(document).ready(function(){
// to avoid possible conflicts in tab initialization, wait until the DOM loads and then add 50 milliseconds before triggering the YUI tab view
window.setTimeout( function(){ window.summaryTabView.set('activeIndex',0) },50)
});
</script>

#end
Expand Down
Loading