Spawn CentOS Linux release 7.8.2003 (Core) VM instance in GCP or AWS and deploy python code using Jenkins CI/CD application

2020-05-06 Thread Kaushal Shriyan
Hi,

Is there a way to spawn VM instance in AWS or GCP for example running 
CentOS Linux release 7.8.2003 (Core) using Jenkins CI/CD and deploy the 
python code where GitLab Source code management is integrated with Jenkins 
to the newly spawned instance? Please correct me if this question is not 
relevant. I have read about Jenkins pipeline and I am not sure if it can be 
used for the above task. Any suggestions will be highly appreciated?

Thanks in advance and I look forward to hearing from you.

Best Regards,

Kaushal

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/51d59da4-ecb1-4fac-b0ab-f929f2378889%40googlegroups.com.


Running WSL command under Windows 10 not working

2020-05-06 Thread Noel Llopis
Hello,

I'm trying to get Jenkins running under Windows 10 to run a command under 
WSL (Windows Subsystem for Linux) but I can't get it to work at all.

Just to simplify it as much as possible, I've set up a build step of 
"Execute Windows Batch Command" like this:
"C:\Users\User\AppData\Local\Microsoft\WindowsApps\ubuntu.exe" run ls

That should execute WSL with the ls command and return. When I do it from 
the command line it works fine.

On Jenkins I get the following error:

*12:39:21* C:\Program Files 
(x86)\Jenkins\workspace\WoG2>"C:\Users\User\AppData\Local\Microsoft\WindowsApps\ubuntu.exe"
 run ls *12:39:21* The system cannot execute the specified program.


Any idea what's going on? I tried changing the Jenkins user to my own to 
make sure there were no problems there and still get the same problem.
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c016fe6c-e3eb-4118-85c5-6896c2ee2a79%40googlegroups.com.


Re: Poll scm in specific branch only

2020-05-06 Thread Den
Tried to remove triggers { pollSCM('H/5 * * * *')  } and use checkout 
function as you describe, but then it is not triggered if there are changes 
in the branch.

Am Dienstag, 5. Mai 2020 17:11:13 UTC+2 schrieb Aryo Kusumo:
>
> Maybe you could try this. It's works for me.
>
> checkout([$class: 'GitSCM', branches: [[name: '$branch_name']], extensions: 
> [[$class: 'WipeWorkspace'], url: '$git_url']]])
>
>
> On Tue, 5 May 2020, 20:15 Den, > wrote:
>
>> Hello,
>>
>> I have a pipeline which should only build if there are changes in branch 
>> specified. It builds however every 5 minutes, since there are changes in 
>> master. Is there a way to poll scm only for a branch?
>>
>> Den
>>
>> pipeline {
>> agent none
>> triggers {
>> pollSCM('H/5 * * * *')
>> }
>> stages {
>> stage ('SCM Pull') {
>> agent any
>> steps {
>> git branch: "mybranch", url: "$URL"
>> }
>> }
>> ...
>>
>> -- 
>> 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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/74e2a3e0-75c3-46bd-b6ed-d1d461398774%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b74b5db4-371b-4448-96ad-bb2f1b5204d7%40googlegroups.com.