Shell script in Jenkins doesn't get info about POM_VERSION/POM_ARTIFACTID with Promotion Build plugin

363 views
Skip to first unread message

alo...@test-cloud.com

unread,
Feb 6, 2017, 7:24:30 AM2/6/17
to Jenkins Users

I am trying to execute shell script with Promotion Build plugin to get info about maven properties (POM_VERSION, POM_ARTIFACTID).

Trouble is values for Jenkins environment variables are shown, but info about maven properties are shown empty. Projects where I am testing are MVN projects.

echo $POM_ARTIFACTID
 
echo $POM_VERSION

echo $PROMOTED_JOB_NAME
tests
echo $JOB_NAME
tests
/promotion

These are the versions I am using:

  • Jenkins 2.43
  • Maven Project Plugin 2.14
  • Promoted Builds Plugin 2.28.1

Anyone knows some solution for this?

Tien Dung Tran

unread,
Jul 24, 2017, 3:33:21 AM7/24/17
to Jenkins Users
Same issue, I don't know how to get  $POM_VERSION

Michael Pailloncy

unread,
Jul 24, 2017, 7:42:28 AM7/24/17
to jenkins...@googlegroups.com
I don't have used these plugins since a while, but If you call "env" command inside your shell script, what's the result ?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/31a9ca93-2b44-45c7-ab86-1a28a5058096%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lee Meador

unread,
Jul 24, 2017, 11:29:01 AM7/24/17
to jenkins...@googlegroups.com
Those variables aren't set in all the types of jobs.


For more options, visit https://groups.google.com/d/optout.



--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com
Reply all
Reply to author
Forward
0 new messages