diff --git a/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java b/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java index 9f9107e0da..75bed5c11e 100644 --- a/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java +++ b/src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java @@ -298,6 +298,8 @@ public void execute() throws MojoExecutionException, MojoFailureException { // enable view auto refreshing via stapler setSystemPropertyIfEmpty("stapler.jelly.noCache","true"); + setSystemPropertyIfEmpty("hudson.script.noCache","true"); + List res = getProject().getBuild().getResources(); if(!res.isEmpty()) { // pick up the first one and use it