Hi!

Is there a way to specify advanced syntax properties to a maven build in a 
freestyle project?
By advanced I mean some text manipulation or even output of system (command 
line) commands.

Using Jenkins 2.387.2 we created a freestyle project  and added an "Invoke 
top-level Maven targets" step.
Under the Properties part of that build step, we are looking to use things like:

substring_of_SOME_ENV_VAR=${SOME_ENV_VAR:4:9}
command_output=$(wc -l < foobar.txt)

The host OS is Windows if that matters.

Ideally, we would like to do this without additional plugins, but as Jenkins is 
"half plugins", one more will not hurt.
(there are so many plugins, which is the reason to ask first instead of just 
pick some that sound right, like the envinject plugin)

NOTE: those parameters will mostly be to read, process, and pass on GIT related 
things.

Lep pozdrav,
David Balažic






The information in this email is confidential and may be legally privileged. It 
is intended solely for the addressee. Any opinions expressed are mine and do 
not necessarily represent the opinions of the Company. Emails are susceptible 
to interference. If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in reliance on 
it, is strictly prohibited and may be unlawful. If you have received this 
message in error, do not open any attachments but please notify the Endava 
Service Desk on (+44 (0)870 423 0187), and delete this message from your 
system. The sender accepts no responsibility for information, errors or 
omissions in this email, or for its use or misuse, or for any act committed or 
omitted in connection with this communication. If in doubt, please verify the 
authenticity of the contents with the sender. Please rely on your own virus 
checkers as no responsibility is taken by the sender for any damage rising out 
of any bug or virus infection.

Endava plc is a company registered in England under company number 5722669 
whose registered office is at 125 Old Broad Street, London, EC2N 1AR, United 
Kingdom. Endava plc is the Endava group holding company and does not provide 
any services to clients. Each of Endava plc and its subsidiaries is a separate 
legal entity and has no liability for another such entity's acts or omissions.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/VI1PR06MB435259BD96498CF8B5345FE982799%40VI1PR06MB4352.eurprd06.prod.outlook.com.

Reply via email to