Can you give me an example of a BuildWrapper please? Not familiar with it. Cheers, Goran.
On May 5, 2017, 4:48 AM -0400, Robert Sandell <[email protected]>, wrote: > Answers inline > > > On Fri, May 5, 2017 at 9:09 AM, Goran Dev <[email protected] > (mailto:[email protected])> wrote: > > I'm writing a plugin, it's already released as zap-plugin. > > GitHub.com/jenkinsci/zap-plugin > > > > On jenkins LTS, in a Job Configuration you have various tabs (sections) > > such as General, Source Code Management, Build Triggers, Build Environment, > > Bindings, Build, Post-build Actions. > > > > 1) is it possible for me to add a tab/section called "ZAP Environment" or > > no? If it's possible, how do I go about adding another section/tab. > > JopProperty (http://javadoc.jenkins-ci.org/hudson/model/JobProperty.html) > goes under General, SCM (http://javadoc.jenkins-ci.org/hudson/scm/SCM.html) > under Source Code Management, Trigger > (http://javadoc.jenkins-ci.org/hudson/triggers/Trigger.html) under Build > Triggers, BuildWrapper > (http://javadoc.jenkins-ci.org/hudson/tasks/BuildWrapper.html) under Build > Environment etc. > Maybe a JobProperty with an <f:section title="${%ZAP Environment}"> would add > another tab I'm not sure. > > > > > 2) under the tab Build, you click on the drop down and you can add your > > plugins build step which in my case is called Execute ZAP. Once it's added, > > how do prevent the user from adding another Execute ZAP build step. > No, Build Steps are intended to be added as many as the user needs, IIRC a > Recorder or Publisher can only be added once for Freestyle, but that > "limitation" is gone for pipelines. Sounds like it is more like a > BuildWrapper that you want to do. > > > > > Does that clarify it? If not, what else can I do to clarify the question. > > Thanks :) > > > > Cheers, Goran. > > > > On May 5, 2017, 2:31 AM -0400, Baptiste Mathus <[email protected] > > (mailto:[email protected])>, wrote: > > > Please use the users list for such questions. > > > If your question is about writing a plugin for this, I guess you need to > > > be more specific. > > > > > > Cheers > > > > > > Le 5 mai 2017 8:21 AM, "JordanGS" <[email protected] > > > (mailto:[email protected])> a écrit : > > > > I can add my Job Build step which is called "Run ABC" from the drop > > > > down list, after it's added. How do i prevent the user from adding > > > > another Build Step "Run ABC"? > > > > How do i add a job configuration. Not a Post build step or a build step > > > > but rather a some options which are above the build step? It would be a > > > > text box for example and a checkbox, both of which could accessible > > > > from a build step / post build step. Would it be possible have these > > > > become environment variables / globally accessible variables throughout > > > > this job's config. > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Jenkins Developers" group. > > > > To unsubscribe from this group and stop receiving emails from it, send > > > > an email to [email protected] > > > > (mailto:[email protected]). > > > > To view this discussion on the web visit > > > > https://groups.google.com/d/msgid/jenkinsci-dev/e78dd486-3b40-406b-baf0-41a31193c3c9%40googlegroups.com > > > > > > > > (https://groups.google.com/d/msgid/jenkinsci-dev/e78dd486-3b40-406b-baf0-41a31193c3c9%40googlegroups.com?utm_medium=email&utm_source=footer). > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > > > > > > > > -- > > > You received this message because you are subscribed to a topic in the > > > Google Groups "Jenkins Developers" group. > > > To unsubscribe from this topic, visit > > > https://groups.google.com/d/topic/jenkinsci-dev/L39Mu7drhDI/unsubscribe. > > > To unsubscribe from this group and all its topics, send an email to > > > [email protected] > > > (mailto:[email protected]). > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS43Y3mgsaxxdLpgFAy90%3DFWwF5wD%2BF8zxwz0D9i5rk2Vw%40mail.gmail.com > > > > > > (https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS43Y3mgsaxxdLpgFAy90%3DFWwF5wD%2BF8zxwz0D9i5rk2Vw%40mail.gmail.com?utm_medium=email&utm_source=footer). > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Jenkins Developers" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to [email protected] > > (mailto:[email protected]). > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/jenkinsci-dev/86679e96-0e85-4de2-be02-5e8dd97277cd%40Spark > > > > (https://groups.google.com/d/msgid/jenkinsci-dev/86679e96-0e85-4de2-be02-5e8dd97277cd%40Spark?utm_medium=email&utm_source=footer). > > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Robert Sandell > Software Engineer > CloudBees Inc. > > > > > > > > -- > You received this message because you are subscribed to a topic in the Google > Groups "Jenkins Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-dev/L39Mu7drhDI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected] > (mailto:[email protected]). > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS3Xm0AJRFsp-oefLpSBGrNi37OBJYEHcJ3fbPH5pzz9Hg%40mail.gmail.com > > (https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS3Xm0AJRFsp-oefLpSBGrNi37OBJYEHcJ3fbPH5pzz9Hg%40mail.gmail.com?utm_medium=email&utm_source=footer). > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/666b5bf6-6d71-47cc-bb14-66619d121c7d%40Spark. For more options, visit https://groups.google.com/d/optout.
