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

2017-07-24 Thread Lee Meador
Those variables aren't set in all the types of jobs.

On Mon, Jul 24, 2017 at 6:42 AM, Michael Pailloncy <
michael.paillo...@gmail.com> wrote:

> I don't have used these plugins since a while, but If you call "env"
> command inside your shell script, what's the result ?
>
> 2017-07-24 6:31 GMT+02:00 Tien Dung Tran :
>
>> Same issue, I don't know how to get  $POM_VERSION
>>
>> On Monday, February 6, 2017 at 7:24:30 PM UTC+7, alo...@test-cloud.com
>> wrote:
>>>
>>>
>>> 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?
>>>
>> --
>> 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/ms
>> gid/jenkinsci-users/31a9ca93-2b44-45c7-ab86-1a28a5058096%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAPO77c2QBhX_CjgTgPihX3TEnDe6c-
> Z0Xm2LcWr34ebYH%3DYR0A%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

-- 
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/CAA4vtDRjgn2a%3DLsbV-eNCM8U52ZNmiOiCJNqAw2dxkBbowBLhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-07-24 Thread Tien Dung Tran
Same issue, I don't know how to get  $POM_VERSION 

On Monday, February 6, 2017 at 7:24:30 PM UTC+7, alo...@test-cloud.com 
wrote:
>
>
> 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?
>

-- 
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/31a9ca93-2b44-45c7-ab86-1a28a5058096%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-02-06 Thread alopez
 

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?

-- 
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/9f21945a-8b6f-4bb5-b0bf-d08cac143d0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.