Thank you, Daniel! Yes, it was as simple as that! P4_CHANGELIST is an environment variable containing the latest changelist for the path provided.
On Tuesday, July 21, 2015 at 3:49:38 PM UTC-7, BeckyY wrote: > > Question is about the P4 plugin by Perforce, not the Perforce plugin by a > third party. > I didn't see in the documentation any info about exposed variables. In > particular, I need to know the changelist # that the plugin selects to > build against. I created a simple project in Jenkins, configured perforce > for it. I see from the build log (console output) that it got the latest > changelist. But within my build scripts I need to use that changelist > number as a variable. Anyone know what variables the P4 plugin provides > for build scripts? > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f5ae945e-edc5-4fc2-ad52-ae9f783e2692%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
