private String getWspFilter(AbstractBuild<?, ?> build, TaskListener listener) {
   try {
     return TokenMacro.expandAll(build, listener, getWspFilter());
   } catch (Exception e) {
     listener.error("failed to expand tokens in: %s%n", getWspFilter());
   }
   return getWspFilter();
 }
 private String getTag(AbstractBuild build, Launcher launcher, BuildListener listener) {
   try {
     return TokenMacro.expandAll(build, listener, tag);
   } catch (Exception ex) {
     listener.getLogger().println("Couldn't macro expand tag " + tag);
   }
   return tag;
 }
 public String getPackageId(AbstractBuild<?, ?> build, TaskListener listener)
     throws IOException, InterruptedException {
   try {
     return TokenMacro.expandAll(build, listener, getPackageId());
   } catch (MacroEvaluationException e) {
     listener.error("Failed to expand macros in Package ID: %s", getPackageId());
     return getPackageId();
   }
 }
 private String expandAll(String s)
     throws MacroEvaluationException, IOException, InterruptedException {
   return TokenMacro.expandAll(build, listener, s);
 }
Exemplo n.º 5
0
 public String r(String value)
     throws MacroEvaluationException, IOException, InterruptedException {
   return strip(TokenMacro.expandAll(build, listener, value));
 }