Sounds like you are trying to use Post in the wrong place - most likely in 
a scripted pipeline. If you were using it correctly, but it wasn't 
available, the error message would say something about an "Undefined 
Section". You can't use "post" in a scripted pipeline. Instead, you have to 
use a try/catch/finally. 



On Wednesday, October 4, 2017 at 11:23:31 AM UTC-6, Indra Gunawan wrote:
>
> Hi,
>
> I would like to archive build images files produced after a successful 
> build step/stage in Jenkins pipeline.
> Is "post", the declarative pipeline syntax, the only way to have 
> post-build defined in Jenkins pipeline.
>
> Somehow it is not available on the Jenkins environment I have:
>
> java.lang.NoSuchMethodError: No such DSL method 'post' found among steps ...
>
>
> May I know the plug-in and version of the plug-in that needs to be installed 
> and running?
>
> Can declarative style and old style coexist in the same pipeline script?
>
>
>
> The Jenkins I am running is :  CloudBees Jenkins Enterprise 2.46.3.2-rolling 
> <https://release-notes.cloudbees.com/product/CloudBees+Jenkins+Enterprise>
>
>
> Thank you
>
> -Indra
>
>

-- 
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/5b70a6fe-ef30-4857-aa03-18fc493eddff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to