Re: curl syntax to send and receive REST Service API response (xml) from jenkins

2018-10-24 Thread Jan Monterrubio
You could also try this:
http://blog.getpostman.com/2016/02/03/curl-and-postman-work-wonderfully-together/
since you know how to call it in postman

On Wed, Oct 24, 2018 at 11:25 Matt Hicks  wrote:

> Are you following the suggestions at
> https://community.pega.com/knowledgebase/articles/running-pegaunit-test-cases-and-test-suites-execute-tests-service-pega-73#config_build
> ?
>
>
> On Wednesday, October 24, 2018 at 11:55:54 AM UTC-4, panneerrselvam
> natarajan wrote:
>>
>> Hi Matt,
>>
>> We have Pega test suite (Rest API) and it is working fine in pega and
>> postman. Now through jenkins pipeline i need to call the test suite and
>> verify the xml response thru jenkins.
>>
>>
>> Please do let me know if you need clarification.
>>
>> Regards
>> Panneer
>>
>>
>>> --
> 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/86cd5da3-9d24-4a33-b3d4-abc1c8aef9de%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADgiF9Jamv-jO6TUKF1k1bVDqMr4MP0AZyzLuCAueqvXCMJgfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How should I configure a Jenkins maven job that will implement the .mvn/extensions.xml?

2018-10-24 Thread Jan Monterrubio
Are you using the Freestyle Job or the Pipeline job? You mention
Jenkinsfile and freestyle in the same paragraph (which at least to me is a
bit confusing)

How do you run this locally? You should be able to use the same command
either through the Pipeline DSL in an ‘sh “command”’ block.

pipeline {

agent any

stages {

stage('Example') {

steps {

sh 'mvn clean deploy'

}

}

}

}

On Wed, Oct 24, 2018 at 12:48 Adam Hardy 
wrote:

> Hi,
>
> sorry if this is a basic question but I can't find a way to set up a
> Jenkins job so that it will run a maven deploy.
>
> The simple maven job bombs because it's a yam pom and maven needs the
> io.takari.polyglot:polyglot-yaml extension, defined in the
> .mvn/extensions.xml in the repo.
>
> I figured I'd need to set up freestyle job, but then I can't figure out
> whether I'd need to run a Jenkinsfile and where I should define that.
>
> I guess I'm missing something - help appreciated!
>
> Thanks,
> Adam
>
> --
> 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/57535916-22d0-4cd5-b7d0-3b013b626055%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Jenkins Administration - Role-based Authorization Strategy - Manage & Assign Roles list really big

2018-10-24 Thread gotviseryon
We use Role-based Authorization Strategy plugin and when we go to Assign 
Roles, the list is really huge and it's becoming hard day by day to add 
users.  Is there a way to address this issue?

1) We are currently handling these manually.  Is there a way to handle this 
manual (like freeze panes in Windows Excel or something of that sort)?
2) Can we automate this using Ansible as we are going to have Ansible setup 
soon?

-- 
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/43505685-e9c9-41ab-8ba7-312859a42f80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How should I configure a Jenkins maven job that will implement the .mvn/extensions.xml?

2018-10-24 Thread Adam Hardy
Hi, 

sorry if this is a basic question but I can't find a way to set up a 
Jenkins job so that it will run a maven deploy.

The simple maven job bombs because it's a yam pom and maven needs the 
io.takari.polyglot:polyglot-yaml extension, defined in the 
.mvn/extensions.xml in the repo. 

I figured I'd need to set up freestyle job, but then I can't figure out 
whether I'd need to run a Jenkinsfile and where I should define that. 

I guess I'm missing something - help appreciated!

Thanks,
Adam

-- 
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/57535916-22d0-4cd5-b7d0-3b013b626055%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Setup Wizard Fail with 'An error occurred during installation: No such plugin: cloudbees-folder'

2018-10-24 Thread Lingeswaran R
Please check for NTP (chrony). If the system runs with incorrect time could 
trigger this error. 

Thank you
Lingesh

On Saturday, May 5, 2018 at 10:30:48 AM UTC+5:30, masaru tsuchiyama wrote:
>
> Hi,
>
> Jenkins Setup Wizard failed with
>  'An error occurred during installation: No such plugin: cloudbees-folder' 
> for Jeknkins 2.119 on Fedora 28.
>
> I tried to install and setup Jenkins in the following procedures.
> --
> sudo wget -O /etc/yum.repos.d/jenkins.repo 
> https://pkg.jenkins.io/redhat/jenkins.repo
> sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
> sudo dnf install -y jenkins
> sudo chkconfig jenkins on
> sudo /etc/init.d/jenkins start
> sudo firewall-cmd --permanent --add-port=8080/tcp
> sudo firewall-cmd --reload
>
> access http://locallhost:8080
> paste the result of 'sudo cat 
> /var/lib/jenkins/secrets/initialAdminPassword' to the browser.
>
> select 'Install Suggested Plugins'.
>
> I got the following error.
> An error occurred 
> An error occurred during installation: No such plugin: cloudbees-folder 
>
>
>

-- 
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/adfa8da7-4d8b-40b2-bf46-5bb44665cd20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: curl syntax to send and receive REST Service API response (xml) from jenkins

2018-10-24 Thread Matt Hicks
Are you following the suggestions 
at 
https://community.pega.com/knowledgebase/articles/running-pegaunit-test-cases-and-test-suites-execute-tests-service-pega-73#config_build
 
?  


On Wednesday, October 24, 2018 at 11:55:54 AM UTC-4, panneerrselvam 
natarajan wrote:
>
> Hi Matt,
>
> We have Pega test suite (Rest API) and it is working fine in pega and 
> postman. Now through jenkins pipeline i need to call the test suite and 
> verify the xml response thru jenkins.
>
>
> Please do let me know if you need clarification.
>
> Regards
> Panneer
>
>
>>

-- 
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/86cd5da3-9d24-4a33-b3d4-abc1c8aef9de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: curl syntax to send and receive REST Service API response (xml) from jenkins

2018-10-24 Thread panneerrselvam natarajan
Hi Matt,

We have Pega test suite (Rest API) and it is working fine in pega and 
postman. Now through jenkins pipeline i need to call the test suite and 
verify the xml response thru jenkins.


Please do let me know if you need clarification.

Regards
Panneer


On Wednesday, October 24, 2018 at 7:52:03 AM UTC-7, Matt Hicks wrote:
>
> Hi Panneer,
>
> Could you please explain in more detail how you run the tests outside of 
> Jenkins?
>
> Cheers,
> Matt
>
>

-- 
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/87d31c98-31c1-4710-90e9-ba4a873608df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: curl syntax to send and receive REST Service API response (xml) from jenkins

2018-10-24 Thread Matt Hicks
Hi Panneer,

Could you please explain in more detail how you run the tests outside of 
Jenkins?

Cheers,
Matt

-- 
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/a46943f5-e867-434b-ab95-2f565261d25b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How copy artifacts between nodes without stash / unstash?

2018-10-24 Thread Bálint Szigeti
there is an artifact copy plugin. I haven't used it, so I don't know 
more about it.



On 2018. 10. 24. 12:45, Viacheslav Dubrovskyi wrote:

Hi,

I use pipeline on high load project with a lot of parallelization. We 
use more then ~400 nodes. And use stash / unstash makes very high load 
on master (IO, CPU, network) and prevent scaling.


So, my question: what is the best way for copy artifacts between nodes?

Yes, I know how to use scp, sftp etc. I'm looking for more native 
tools. For example, specify the name of the node for the source of 
artifacts and get them from there.


Thank you.



--
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/5e14e321-4097-2dd7-39f4-b7bd0646e8ce%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Access "build" variable from Active Choice parameter Groovy dcript6

2018-10-24 Thread Remi P
Hi all

how can I access the predefined 'build' variable from a Active Choice parameter 
Groovy script ?

>From the logs I got it seems that this variable its not defined.

Thanks for your help

-- 
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/03a9b05a-70db-4a20-9838-121b4f4e1c9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How copy artifacts between nodes without stash / unstash?

2018-10-24 Thread Viacheslav Dubrovskyi

Hi,

I use pipeline on high load project with a lot of parallelization. We 
use more then ~400 nodes. And use stash / unstash makes very high load 
on master (IO, CPU, network) and prevent scaling.


So, my question: what is the best way for copy artifacts between nodes?

Yes, I know how to use scp, sftp etc. I'm looking for more native tools. 
For example, specify the name of the node for the source of artifacts 
and get them from there.


Thank you.

--
WBD,
Viacheslav Dubrovskyi


--
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/f7ecfdb3-c1af-ed7d-b8e0-17848adf0172%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Completely Host Jenkins build logs on external storage

2018-10-24 Thread Steven Foster
Nothing released yet, but there are some relevant JEPs that might interest 
you

https://github.com/jenkinsci/jep/blob/master/jep/207/README.adoc
https://github.com/jenkinsci/jep/blob/master/jep/210/README.adoc
https://github.com/jenkinsci/jep/blob/master/jep/212/README.adoc

On Monday, October 22, 2018 at 11:09:36 PM UTC+1, red 888 wrote:
>
> Everything I see is for *backing up* build logs to S3 or other external 
> storage locations.
>
>
> Is there a plug-in for actually hosting build logs on those locations? 
> meaning that's just where Jenkins writes to and looks for build logs?
>
>
> I often replay jobs and like looking at the job history in the Jenkins UI. 
> but I don't want to store all of these build logs on the file system. So 
> I'm not talking about just backing up. I want the Jenkins UI to read from 
> the external storage and be able to replay jobs.
>
>
> Ideally i could have Jenkins read/write to S3 for build logs. I could also 
> mount another voulme just for build logs and point jenkins to it for build 
> logs location but prefer to use cloud storage.
>
>
> This is for master and any slaves
>

-- 
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/957379ac-99a8-4052-8b4d-95ee89cbfc8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Run script before build is deleted?

2018-10-24 Thread James Green
I filed this as https://issues.jenkins-ci.org/browse/JENKINS-54164


On Sat, 13 Oct 2018 at 16:32, Slide  wrote:

> I think James is looking for something that allows him to run a script or
> something before a build is deleted from Jenkins, NOT during a build run.
> It would have to be something based on Run listener [1]. I am not aware of
> anything off the top of my head, but you could search the jenkinsci org on
> GitHub for RunListener and see if anything implements onDeleted.
>
> 1 - https://javadoc.jenkins-ci.org/hudson/model/listeners/RunListener.html
>
> On Sat, Oct 13, 2018, 07:36 Jan Monterrubio 
> wrote:
>
>> Would the Post Build actions (execute shell) not execute in the right
>> spot?
>>
>>
>> https://www.oreilly.com/library/view/jenkins-the-definitive/9781449311155/ch05s07.html
>>
>>
>> On Fri, Oct 12, 2018 at 09:39 James Green 
>> wrote:
>>
>>> How so? I need this to run as the build gets expired but as it completes.
>>>
>>>
>>> On Thu, 11 Oct 2018 at 17:58, Jan Monterrubio 
>>> wrote:
>>>
 As a post build script, probably.

 On Thu, Oct 11, 2018 at 11:35 James Green 
 wrote:

> Is this possible?
>
> What I would like to do: examine the build and discover if there are
> any docker images. If there are, delete them from the registry first.
>
> Is this feasible?
>
> Thanks,
>
> James
>
> --
> 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/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 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/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> 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/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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/CADgiF9JQuDoNxcbxCj4bAEJrnuRDUC_k6BM%3DunV2L2_0BT_hOA%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAPiUgVe5dRdtJRgjWPb8_8hLB4SzHU6Gd9NzEaDrtH0iPfF7BQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 

Re: Changing Jenkins URL

2018-10-24 Thread Adrien Lecharpentier
This is a more global setup configuration. I'm not sure this can be
answered on this mailing list.

It's not different from setting up a DNS entry for a website.

Le mar. 23 oct. 2018 à 23:35, Faad Sayaou  a écrit :

> Hi thanks for the reply. I am really new in this. How do you configure the
> DNS for jenkins to use the URL i want? thanks
>
> On Tue, 23 Oct 2018 at 09:03, Adrien Lecharpentier <
> adrien.lecharpent...@gmail.com> wrote:
>
>> Hello,
>>
>> this is not really enough. This field let you configure how Jenkins will
>> notify the users of the instance, in case of build failure for example.
>>
>> You still need to configure the DNS, reverse-proxy or other elements.
>>
>> Best regards.
>> -- Adrien
>>
>> Le mar. 16 oct. 2018 à 21:58, Faad Sayaou  a écrit :
>>
>>> Hello everyone
>>> I changed Jenkins URL field to "jenkins-app.mywebsite.com" in the
>>> jenkins.model.JenkinsLocationConfiguration.xml file and I tried accessing
>>> it on the browser but to no avail. My goal is to set up a running Jenkins
>>> instance where everyone in the company can access it with the link. Any
>>> help will be appreciated.
>>>
>>> --
>>> 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/b6a0e0ef-6c2b-471c-ac4a-a2927a736abf%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Adrien Lecharpentier
>>
>> --
>> 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/CAKwJSvw7v9pMhT0Dz%3DfT_B7-exmmMFZcs9RLg-SbN5gYa%2B2rwA%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAL2KjjSTUop73gPV997MgP0edh7v6uVoPp%2BsJYj3inL73-Dk_Q%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAKwJSvxxSdrPvTnA8CBF1tO_smwB3e_exKxcMbV0r6G0%3D04oWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


"Provide Node & npm bin/folder to PATH" not working

2018-10-24 Thread Pranav Kv
I installed nodejs plugin on my jenkins 2.121.1 LTS. I know few issues are 
already reported due to the version of Environemtl Injector Plugin.
With Environment injector plugin(1.92.1) I'm not able to use custom Nodejs 
installation from "Provide Node & npm bin/ folder to PATH"
Disabling Environment Injector Plugin makes the problem go away. 
Please let me know disabling this plugin is the right way?  which is the stable 
version of Environmental inject plugin to use nodejs installation? 

Thanks
Pranav

-- 
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/fabd2d71-d773-4874-9a93-be6be5f716ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.