Hi List, 

Is there a way to extend or override *declarative* pipeline syntax ?

I would like to be able to provide a library I would use this way : 

pipeline {
>   agent any
>   tools { ... }
>   stages {
>     stage ("My custom stage") { ... }
>     standardStage()
>     stage ("My custom stage") { ... }
>   }
> }
>

where standardStage would be defined ilike this : 

def call() {
>   stage("Standard stage") { ... }
> }
>

which is not possible because of declarative pipeline syntax check 
("standardStage" is not a legal child of "stages")


Thanks in advance, 
Grégory

-- 
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/50fdd2fe-3d9a-44d1-a33b-d6fd2af4cbb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to