Find and Replace options in jenkins

2,683 views
Skip to first unread message

Kalluri, Jagan

unread,
Aug 1, 2011, 9:05:49 AM8/1/11
to jenkins...@googlegroups.com

Hello Jenkins Masters,

 

 

Can some one tell me if any Plug-in or step available in Jenkins to perform Find and Replace some text in a file?

 

 

 

Thanks,

Jagan Kalluri

Build and Release Engineer

Travelex Global Business Payments

Email: Jagan....@Travelex.com

Phone: +1 (202) 408 1200 Ext : 6372

 

http://travelexbusiness.com/na

Twitter: www.twitter.com/travelexfx

Winner Innovation of the Year 2010

Financial-i Leaders in Innovation Awards

 

*******************************************************************************
Information in this email including any attachment ('email') is confidential,
may be privileged and is intended solely for the addressee. Unauthorised
recipients are requested to preserve the confidentiality of this email, advise
the sender immediately of any error in transmission, and then delete the email
from the recipient's mailbox without making copies. Any disclosure, copying,
distribution or action taken, or omitted to be taken, in reliance upon the
contents of this email by unauthorised recipients is prohibited and may be
unlawful.

Please note that no contracts or commitments may be concluded on behalf of
Travelex Holdings Limited and its subsidiary companies ('Travelex') by means of
email, and no statement or representation made in this email is binding on
behalf of Travelex.

DISCLAIMER: Whilst this message has been scanned for viruses, Travelex
disclaims any responsibility or liability for viruses contained therein. It is
therefore recommended that all emails should be scanned for viruses.

Travelex - www.travelex.com
*******************************************************************************

Didier Durand

unread,
Aug 1, 2011, 10:26:07 AM8/1/11
to Jenkins Users
Hi,

Why don't you just add a step in you build script to do this ?

If your build script is a linux shell then sed or awk are good
candidates.
If you rather use ant then the replace Task is a good candidate: see
http://ant.apache.org/manual/Tasks/replace.html

regards

didier

On Aug 1, 3:05 pm, "Kalluri, Jagan" <Jagan.Kall...@Travelex.com>
wrote:
> Hello Jenkins Masters,
>
> Can some one tell me if any Plug-in or step available in Jenkins to
> perform Find and Replace some text in a file?
>
> Thanks,
>
> Jagan Kalluri
>
> Build and Release Engineer
>
> Travelex Global Business Payments
>
> Email: Jagan.Kall...@Travelex.com <mailto:Jagan.Kall...@Travelex.com>
>
> Phone: +1 (202) 408 1200 Ext : 6372
>
> http://travelexbusiness.com/na<http://travelexbusiness.com/na>
>
> Twitter:www.twitter.com/travelexfx<http://www.twitter.com/travelexfx>

Kalluri, Jagan

unread,
Aug 1, 2011, 12:19:45 PM8/1/11
to jenkins...@googlegroups.com
Right now I am using ANT Targets for that , I am looking if any Other Option Available ?

Thanks,
Jagan Kalluri
Build and Release Engineer
Travelex Global Business Payments

Email: Jagan....@Travelex.com

Twitter: www.twitter.com/travelexfx


Winner Innovation of the Year 2010
Financial-i Leaders in Innovation Awards

Vadivel Natarajan

unread,
Jun 23, 2016, 7:11:29 AM6/23/16
to Jenkins Users, Jagan....@travelex.com
Hi All,

Can some one tell me if any Plug-in or step available in Jenkins to perform Find and Replace some text in a file?

I need to change the CopyRight Year and Company name in AssemblyInfo.cs file of a .NET project.

Regards,
Vadivel 

Daniel Beck

unread,
Jun 23, 2016, 8:17:58 AM6/23/16
to jenkins...@googlegroups.com
Maybe the new https://wiki.jenkins-ci.org/display/JENKINS/File+Operations+Plugin supports this? Haven't used it.

I think most people just use the batch/shell for this.
> --
> 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/5c629324-3613-492d-86a0-1afcabc4c7e2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages