To All,

I want to build a table and put it as a view's description. I found the
below code that does work in the script console but in a scripted pipeline
it shows no failure but does not work.

Here the the entire pipeline:

import org.kohsuke.stapler.StaplerRequest
import org.kohsuke.stapler.StaplerResponse

stage ('stage1') {
            Hudson.instance.getView('Testing').doSubmitDescription([
getParameter: { return "zzzzxxxxyyyy"; }] as StaplerRequest, [
sendRedirect: { return; } ] as StaplerResponse)
}

and here is the code in Git:

/**
* Accepts the new description.
*/
@RequirePOST
public synchronized void doSubmitDescription( StaplerRequest req,
StaplerResponse rsp ) throws IOException, ServletException {
checkPermission(CONFIGURE);
description = req.getParameter("description");
save();
rsp.sendRedirect("."); // go to the top page
}

What am I doing wrong?
-- 
Dick Ginga
Build Engineer
[email protected]

-- 
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/CAL3PpaXsvC-Uy%2BSZmuYcOuvTEPjYb34zQS7_MiTHy%2BGsife2AQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to