In this demo example, I was able to pause/resume when callingCps() method 
is executing. But I could not pause/resume when callingNonCps() method is 
executing. Does that mean pipelines that contain NonCPS methods are not 
durable?


node('build'){
    println "in cps";
    callingNonCps();
    callingCps();
}



def callingCps(){
    println "in cps";
    for(int i=0;i<500;i++){
        println "in cps $i";
    }
}

@NonCPS
def callingNonCps(){
    
    for(int i=0;i<500;i++){
        println "in non cps $i";
    }
}




On Monday, April 20, 2020 at 5:27:54 PM UTC-7, Senthil Nathan wrote:
>
> How do I guarantee durability of my job given that my job will use jenkins 
> plugins that are not CPS transformed.
>
> From my understanding - Jenkins does not provide durability for non CPS 
> transformed jenkins plugin.
>

-- 
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/3a15aca1-f682-4e4f-9247-f0616fb751e8%40googlegroups.com.

Reply via email to