text-finder-plugin

28 views
Skip to first unread message

Angela Kim

unread,
May 27, 2015, 10:48:23 AM5/27/15
to jenkins...@googlegroups.com

We have a requirement to add a specific text comment to all of our source code. As a validation, during each CI build the changed files should be scanned to ensure that the required text has been added. If the comment does not exist, then the build should fail.

Matthew...@diamond.ac.uk

unread,
May 27, 2015, 11:28:35 AM5/27/15
to jenkins...@googlegroups.com

Why not just add another build step that does “find” and “grep”, and exits with the appropriate return code? (I’m assuming you’re on Linux here)

Matthew

 

--

 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 

Angela Kim

unread,
May 27, 2015, 2:26:09 PM5/27/15
to jenkins...@googlegroups.com
Before reinventing the wheel, I wanted to see if something already existed.

Christopher Orr

unread,
May 27, 2015, 7:27:10 PM5/27/15
to jenkins...@googlegroups.com
Ok, but what is your question? Are you trying to say that you've tried
the Text Finder Plugin to implement your requirement, but failed?

In the absence of more info, I'm with Matthew — using something other
than `find` and `grep` seems like reinventing the wheel :)

-Chris

Angela Kim

unread,
May 27, 2015, 7:39:02 PM5/27/15
to jenkins...@googlegroups.com

Whoops...
Question is if the text-find-plugin can be used to scan the changed files for the required text?

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/i5vGQqZXBmY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/556652BE.2090606%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.

Baptiste Mathus

unread,
May 31, 2015, 2:15:37 AM5/31/15
to jenkins...@googlegroups.com

The answer is yes. But seriously, sending mails here has imo been far longer for you then just trying it. Did you try it?
There's a check box for what you want to do.

Cheers

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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKvhRznDA4%2BH5O9CxS6CJWRp23H_eamnWN-F8ELLMyUOkPh%3D_w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages