Child pages
  • Preselect username in Maven Release Build
Skip to end of metadata
Go to start of metadata

The following modifies the maven release build settings to preselect the jenkins username. 

import hudson.model.*
import hudson.maven.*
import hudson.tasks.*
import org.jvnet.hudson.plugins.m2release.*

for(item in Hudson.instance.items) {
  if (item instanceof MavenModuleSet)
    println("\njob $ ");
    rw = item.getBuildWrappers().get(M2ReleaseBuildWrapper.class);
    if (rw == null)
      println("release build not configured");
     println("append Username: "+rw.isSelectAppendHudsonUsername())
  • No labels