Suresh, can’t help you with #4, but for #3, look at “Log Parser” plugin. It’s specifically for parsing the build log.
-- Adam vonNieda [email protected] > On Nov 28, 2018, at 10:34 AM, Suresh Parimi <[email protected]> wrote: > > Veena, > > Interestingly I am also looking for the same solution since this evening. Do > you mind sharing how you achieved step 3. How did you parse the jenkins > cosole output. > > I am haing robot framework to execute test cases using jenkins. > > my task is: label build as smoke if ghe tag= Smoke tests passed to the script > execution command. > > Anyone have any ideas/experience with this? > > Thank you, > Suresh > > On Wed, Nov 28, 2018 at 9:00 PM Veena Thomas <[email protected] > <mailto:[email protected]>> wrote: > I am trying to achieve the following task in Jenkins: 1) Build a maven > project 2) When running the test cases I print certain messages to the > console output 3) Parse the console output of the build and determine if > certain patterns exist in the output 4) If the pattern exists I want to label > the build with a specific string > > I have achieved steps 1-3. I am not able to create a dynamic label and tie it > to a build. I have a Groovy script that parses the console output and > determines if the pattern exists in the build's output. > > > > Bamboo provides this feature to label a build based on regular expressions > present in the build's console output. Link - > https://confluence.atlassian.com/bamboo0606/using-bamboo/jobs-and-tasks/configuring-jobs/configuring-miscellaneous-settings-for-a-job/configuring-automatic-labeling-of-job-build-results > > <https://confluence.atlassian.com/bamboo0606/using-bamboo/jobs-and-tasks/configuring-jobs/configuring-miscellaneous-settings-for-a-job/configuring-automatic-labeling-of-job-build-results> > > I have gone through various existing Jenkins plugins but have not been > successful in achieving this functionality. Is there a plugin to achieve this > functionality or can I add additional lines in the Groovy script to create a > dynamic build label. Any help is appreciated. > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" 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-users/aa8c942b-c370-48dc-b087-23dafff17b42%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-users/aa8c942b-c370-48dc-b087-23dafff17b42%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" 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-users/CAE%2BRaT5ULR52_R9SdWk24%3DLrAubyWann11noXyVeF9KpF%2BkkwQ%40mail.gmail.com > > <https://groups.google.com/d/msgid/jenkinsci-users/CAE%2BRaT5ULR52_R9SdWk24%3DLrAubyWann11noXyVeF9KpF%2BkkwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/6B43379B-E0F6-41B7-973C-7E7752875E0F%40vonnieda.org. For more options, visit https://groups.google.com/d/optout.
