I need get the name job in this example, I have a code for get the previous value of the build parameter with that code
jenkins.model.Jenkins.instance.getItem("nameOfJob").lastBuild.getBuildVariables().get("NameOfParameter");
The name of job now is hard coded, I need get this name will be the name of the current job. How can I do it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…