Plugin execution is not aborted which I cancelled build strp

39 views
Skip to first unread message

varun vikas

unread,
Oct 15, 2019, 8:39:46 AM10/15/19
to Jenkins Developers
Hi,

I am creating a Jenkins plugin which executes command( bat file or .sh file) on slave node using
launcher.launch().cmds(buildCommandLine(script)).envs(envVars).stdout(listener).pwd(ws).start());
I have extended Builder and implements SimpleBuildStep.
But when I tried to abort the plugin , it is not aborted.What could be issue.


Thanks,
Varun

Jeff Pearce

unread,
Oct 15, 2019, 9:37:03 AM10/15/19
to jenkin...@googlegroups.com
I’m not sure I understand the question, but are you sure you need to do this in a plugin? Does it add something beyond running the command from your pipeline? 

Sent from my iPhone

On Oct 15, 2019, at 5:39 AM, varun vikas <varun...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3b890d9d-016f-4c09-92c2-8e0218bce87e%40googlegroups.com.

varun vikas

unread,
Oct 15, 2019, 10:09:52 AM10/15/19
to jenkin...@googlegroups.com
Hi Jeff,

I am parsing  .xml file (present at slave mode) in class which implements FilePath.FileCallable<ArrayList<String>> and after parsing .xml file ,I store commands in array of  string and returned it to master,
where I execute command using launcher.launch().cmds(buildCommandLine(script)).envs(envVars).stdout(listener).pwd(ws).start());
But while executing this plugin, I am not able to abort it.
Thanks,
Varun

varun vikas

unread,
Oct 15, 2019, 3:44:47 PM10/15/19
to jenkin...@googlegroups.com
<correcting mail subject>

varun vikas

unread,
Oct 15, 2019, 3:48:13 PM10/15/19
to jenkin...@googlegroups.com
On Tue, 15 Oct 2019, 19:39 varun vikas, <varun...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages