Hi !

 

I want to know how can I use different agent type in my pipeline in 
function of the Jenkins master executing it ?

 

There are two Jenkins master target :

One is using a kubernetes cluster for providing agent containers : agent { 
kubernetes { ...

One is using a docker agent : agent { docker ...

 

I am looking for a solution to make a pipeline generic which can be 
executed on both.

The idea is not to have stage duplications on the pipeline.

 

Is it possible ?

 

Thanks.

-- 
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/f0a1ffc7-522a-40fd-a8cf-7985f62a84d6%40googlegroups.com.

Reply via email to