Plugin is not getting aborted while execution.

2019-10-15 Thread varun vikas
Hi ,

I am parsing  .xml file (present at slave mode) in class which implements 
FilePath.FileCallable> and after parsing .xml file ,I 
store commands in array of  string and returned it to master,
On master, 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.
can anyone please help me , what could be the issue?

Thanks,
Varun

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/454fda1e-410f-43af-adcd-a736639058fb%40googlegroups.com.


Re: Plugin execution is not aborted when I cancelled build.

2019-10-15 Thread varun vikas
On Tue, 15 Oct 2019, 19:39 varun vikas,  wrote:

> Hi Jeff,
>
> I am parsing  .xml file (present at slave mode) in class which implements
> FilePath.FileCallable> 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
>

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAKQUBE4ZWLtEYKxvaABLLDrZmZuE_LjsXJA2h%3DV4azxepp2HKw%40mail.gmail.com.


Re: Plugin execution is not aborted when I cancelled build .

2019-10-15 Thread varun vikas


On Tue, 15 Oct 2019, 19:39 varun vikas,  wrote:

> Hi Jeff,
>
> I am parsing  .xml file (present at slave mode) in class which implements
> FilePath.FileCallable> 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
>

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAKQUBE6b7JX8fAVtXs0tDvb7%2BQz7Nq8hNjpqt8frwEcr%3Dn%2B-Nw%40mail.gmail.com.


Re: INFRA ci.jenkins.io

2019-10-15 Thread Gavin
For now the easiest solution is to close the pr. Wait 30 secs and reopen it

On Tue., Oct. 15, 2019, 3:48 a.m. pallen,  wrote:

> Hi,
>
> I'm getting connection errors reported on my builds:
>
>
> https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fp4-plugin/detail/master/401/pipeline
>
>win2012-1f85e0 was marked offline: Connection was broken:
> java.util.concurrent.TimeoutException: Ping started at 1571135261424 hasn't
> completed by 1571135501425
>
> Please can you restart the build when the slaves nodes are back online.
> If possible please can you grant me permissions to restart them myself
> (user ID 'p4paul').
>
>
> Kind regards,
> Paul
>
> --
> 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-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/858537e5-0456-43ab-9928-60396b540d7c%40googlegroups.com
> 
> .
>

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_Dusv6c52OjMnzmLf_UVgKRBWchG%3Da6upC-AJX1Fuo8zdHA%40mail.gmail.com.


Ci-builds and release of hosted plugin

2019-10-15 Thread Fredrik
We are thinking of hosting our plugin at Jenkins and we are doing 
preparations now.

Am I miss understanding this or?

The code is hosted at Jenkins and we will run ci-builds there.
But when releasing we will do it from our maven here.
Couldn't we release a completely other version than the one the ci-build?

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/8440bfab-302b-4f22-8076-63262a70ff47%40googlegroups.com.


Re: Plugin execution is not aborted which I cancelled build strp

2019-10-15 Thread varun vikas
Hi Jeff,

I am parsing  .xml file (present at slave mode) in class which implements
FilePath.FileCallable> 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

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAKQUBE49ikcFwPkF_cMHZ5fFN2hoiQxxdjPNqJhC%3D_96fHLGrg%40mail.gmail.com.


Re: Plugin execution is not aborted which I cancelled build strp

2019-10-15 Thread Jeff Pearce
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  wrote:


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


--
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-dev+unsubscr...@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.

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/D0988696-EDE0-4945-96E4-67D613C9F22B%40godaddy.com.


Re: 2019 Elections: voting is delayed

2019-10-15 Thread Marky Jackson
KK,
Understood.
I think it would be a good exercise post-election to have an open 
retrospective. Among the many reasons, I also feel it will give the community 
an opportunity to see how a project of this magnitude handled things like this 
and others in the open.
Thanks kindly for all you and other do for Jenkins, I for one am truly thankful.

{ 
"regards" : {
 "name" : “marky”,
 "phone" : "+1 (408) 464 2965”,
 "email" : “marky.r.jack...@gmail.com",
 "team" : “jackson5“,
 “role” : “software engineer"
 }
 }

> On Oct 15, 2019, at 6:02 AM, Kohsuke Kawaguchi  wrote:
> 
> 
> The proposed time table that we published earlier had Oct 14th as the start 
> of voting, but due to a logistical challenge of running a vote with this many 
> people, we need a bit more time to sort this out.
> 
> So the start of voting will be delayed. I currently do not have an ETA, but 
> hopefully it shouldn't take too long.
> 
> -- 
> Kohsuke Kawaguchi
> -- 
> 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-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CAN4CQ4zGX0zaavFELOovrbtr%3DoefOXrTEKDan-Mu2Z4TMTOYcA%40mail.gmail.com.

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/4EBF2DBC-16B3-4CC3-BE05-C716AC2AA436%40gmail.com.


2019 Elections: voting is delayed

2019-10-15 Thread Kohsuke Kawaguchi
The proposed time table that we published earlier had Oct 14th as the start
of voting, but due to a logistical challenge of running a vote with this
many people, we need a bit more time to sort this out.

So the start of voting will be delayed. I currently do not have an ETA, but
hopefully it shouldn't take too long.

-- 
Kohsuke Kawaguchi

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAN4CQ4zGX0zaavFELOovrbtr%3DoefOXrTEKDan-Mu2Z4TMTOYcA%40mail.gmail.com.


Plugin execution is not aborted which I cancelled build strp

2019-10-15 Thread varun vikas
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

-- 
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-dev+unsubscr...@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.


Any workspace change between LTS 2.138 and 2.150?

2019-10-15 Thread martinda
Something changed between Jenkins LTS 2.138 and 2.150 with regards to the 
workspace.
Since LTS 2.150 the workspace set by the external workspace manager plugin 
is ignored inside: stage, withEnv, withCredentials (and possibly others).
Below is an example. Inside the stage step, the workspace is not the same 
as immediately outside the stage.
I wrote the actual workspace path returned, beside each line as a comment.

The code below can also be found in 
https://gist.github.com/martinda/fae71b37dc20bcb0e239ab46de3be291

def extWorkspace
stage('Allocate Workspace') {
extWorkspace = exwsAllocate 'diskpool1'
}

node() {  // Running on Jenkins in 
/localdisk/martin/jenkins/jenkins/workspace/test-exws
exws(extWorkspace {   // Running in /localdisk/martin/diskpool1/test-exws/8
sh 'pwd'  // /localdisk/martin/diskpool1/test-exws/8
stage("Stage") {
sh 'pwd'  // ??? 
/localdisk/martin/jenkins/jenkins/workspace/test-exws ???
}
sh 'pwd'  // /localdisk/martin/diskpool1/test-exws/8
}
}

Can someone explain why the inner-most sh step has a different workspace since 
LTS 2.150?

Thanks,
Martin

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/6402f649-89dc-4d18-88e1-e9babc61c33a%40googlegroups.com.


INFRA ci.jenkins.io

2019-10-15 Thread pallen
Hi,

I'm getting connection errors reported on my builds:

   
https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fp4-plugin/detail/master/401/pipeline

   win2012-1f85e0 was marked offline: Connection was broken: 
java.util.concurrent.TimeoutException: Ping started at 1571135261424 hasn't 
completed by 1571135501425

Please can you restart the build when the slaves nodes are back online.  If 
possible please can you grant me permissions to restart them myself (user 
ID 'p4paul').
 

Kind regards,
Paul

-- 
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-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/858537e5-0456-43ab-9928-60396b540d7c%40googlegroups.com.