Re: How to download and view all previous artifacts from artifactory

2016-12-01 Thread Christoph Nenning
Hi,

it seems to me that your WARs always have same filenames and when 
uploading them the old ones are overwritten in artifactory. Try adding 
version numbers or timestamps either to filenames or to artifactory 
directories.

Another cause of that behavoir could be if you configured "Discard old 
builds" in your jenkins job.


Hope that helps.


Regards,
Christoph




> From: pradeep palem 
> To: Jenkins Users , 
> Date: 02.12.2016 07:58
> Subject: Re: How to download and view all previous artifacts from 
artifactory
> Sent by: jenkinsci-users@googlegroups.com
> 
> Hi Victor,
> 
> Thanks for your reply.
> 
> Currently i am generating artifacts from Jenkins , I am able to 
> deploy/copy  to artifactory .
> 
> Lets say Build No#12 was the latest build moved to artifactory . Now
> am able to see latest artifact i.e Build No# 12 on 
artifactory dashboard.
> 
> But I want to see  and old artifacts i.e Build no #11, 10, 9, 8.. 
> etc on artifactory .I am not able to see old artifacts on artifactory .
> 
> I am using ant and maven based build .  Please find my 
> jenkins configuration for deploying artifacts to artifactory
> 
> For ANt:- I check this box and deploy artifact to artifactory
> Generic-Artifactory Integration
> Upload Details
>   Artifactory upload server:localhost:8081/artifactory 
>   Target Repository:ABC 
> 
> Published Artifacts **/dist/*.war
>  For Maven:- I am usnig thr Deploy artifactsto Artifactory under 
> post build actions
> Deploy artifacts to Artifactory:
> Artifactory upload server:localhost:8081/artifactory
> 
> Target releases repository:ABCD

> 
> Thanks ,
> Pradeep 
> 
> 
> On Thursday, December 1, 2016 at 11:10:52 PM UTC+5:30, Victor Martinez 
wrote:
> I'm not sure if I understood correctly what you mean, as far as i 
> understand those artifacts are generated and uploaded from jenkins 
> with some plugins, what do you mean about you cannot pull other 
> artifacts but the latest one from Jenkins? How do you pull them? Did
> it work previously? And also where do you pull them from? 
> The more details the better about what you expect, why, versions, 
> what errors warnings did you see and so on
> 
> Cheers
> -- 
> 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/a9722988-5afd-4ce1-b802-f9d05b856744%
> 40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

This Email was scanned by Sophos Anti Virus

-- 
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/OF616D1390.4B9AF686-ONC125807D.002B0F03-C125807D.002B560C%40lex-com.net.
For more options, visit https://groups.google.com/d/optout.


Re: How to download and view all previous artifacts from artifactory

2016-12-01 Thread pradeep palem
Hi Victor,

Thanks for your reply.

Currently i am generating artifacts from Jenkins , I am able to deploy/copy 
 to artifactory .

Lets say Build No#12 was the latest build moved to artifactory . Now am 
able to see latest artifact i.e Build No# 12 on artifactory dashboard.

But I want to see  and old artifacts i.e Build no #11, 10, 9, 8.. etc on 
artifactory .I am not able to see old artifacts on artifactory .

I am using ant and maven based build .  Please find my 
jenkins configuration for deploying artifacts to artifactory

For ANt:- I check this box and deploy artifact to artifactory
Generic-Artifactory Integration
Upload Details
  Artifactory upload server:localhost:8081/artifactory 
  Target Repository:ABC 

Published Artifacts **/dist/*.war
 For Maven:- I am usnig thr Deploy artifactsto Artifactory under post build 
actions
Deploy artifacts to Artifactory:
Artifactory upload server:localhost:8081/artifactory
Target releases repository:ABCD

Thanks ,
Pradeep 


On Thursday, December 1, 2016 at 11:10:52 PM UTC+5:30, Victor Martinez 
wrote:
>
> I'm not sure if I understood correctly what you mean, as far as i 
> understand those artifacts are generated and uploaded from jenkins with 
> some plugins, what do you mean about you cannot pull other artifacts but 
> the latest one from Jenkins? How do you pull them? Did it work previously? 
> And also where do you pull them from? 
>
> The more details the better about what you expect, why, versions, what 
> errors warnings did you see and so on
>
>
> Cheers
>
>

-- 
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/a9722988-5afd-4ce1-b802-f9d05b856744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What's the point of updating Jenkins UpdateCenter on fresh installation???

2016-12-01 Thread Baptiste Mathus
Because that file always changes. It's like 'apt-get update'. You want to
run it to see an up-to-date list of plugins.

Cheers

Le 1 déc. 2016 10:51 PM, "TInaTinaTian L"  a
écrit :

> Hello,
>
> I came across this script that updates jenkins UpdateCenter from command
> line: https://gist.github.com/jedi4ever/898114
>
>> # Get the update center ourself
>>
>> $ wget -O default.json http://updates.jenkins-ci.org/update-center.json
>>
>> # Now push it to the update URL
>>
>> curl -X POST -H "Accept: application/json" -d @default.json
>>> http://localhost:9020/updateCenter/byId/default/postBack --verbose
>>
>>
>  They told me to use this script but I don't understand what it does. Why
> is there a need for updating the UpdateCenter for OFB installation???
> Can someone explain this to me plz, it will save me major headaches if it
> turns out I don't really need this.
>
> Thanks,
> Tin
>
> --
> 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/dcc0ae35-3275-4205-b5a7-49816bcddb20%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/CANWgJS7DgkLG%2BZeu_NdBy741mPyoksGCNYZqc-bkzp%3DUxe-k6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Understanding the pipeline better

2016-12-01 Thread terkaly
I understand that the pipeline approach is the new modern approach when 
working with Jenkins.

I'm having a difficult time learning about how to use it exactly in the 
context of Python, Docker, Jenkins.

I've got Gradle, docker, Python to execute from within the pipeline window 
through proper installations of those products. So I am good there.

I got the docker plug in to work and it has a bunch of methods to do the 
various build, run, pull commands.

Here are some newbie questions. Apologies.

If I want to write most of my code in Python because I want cross 
compatibility with Windows, where would I store the Python script files so 
that the pipeline portal could access them? 
Would they be part of the git repository when I do my pull in the scripts 
would become available and that manner?
Is Jenkins stateless such that I have to download everything I want to work 
with?

I would love to see an end to end tutorial that shows me how to trigger a 
docker build locally after code check in and then run unit tests on that 
locally built image using Python.
.
Any help is much 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/6c08441c-20eb-4ae1-a6b9-b4c349a9fa2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ansible plugin 0.6 release date

2016-12-01 Thread Laurent Goujon
Hi,

I'm also impacted by the ansible plugin issue where current environment is 
not respected (https://issues.jenkins-ci.org/browse/JENKINS-38289), and I 
was wondering when the next version of the plugin with the fix would be 
released.

Thanks in advance,

Laurent

-- 
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/14af40cf-1015-4390-9cfe-93968d4675e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What's the point of updating Jenkins UpdateCenter on fresh installation???

2016-12-01 Thread TInaTinaTian L
Hello,

I came across this script that updates jenkins UpdateCenter from command 
line: https://gist.github.com/jedi4ever/898114 

> # Get the update center ourself
>
> $ wget -O default.json http://updates.jenkins-ci.org/update-center.json
>
> # Now push it to the update URL
>
> curl -X POST -H "Accept: application/json" -d @default.json 
>> http://localhost:9020/updateCenter/byId/default/postBack --verbose
>
>
 They told me to use this script but I don't understand what it does. Why 
is there a need for updating the UpdateCenter for OFB installation???
Can someone explain this to me plz, it will save me major headaches if it 
turns out I don't really need this.

Thanks,
Tin

-- 
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/dcc0ae35-3275-4205-b5a7-49816bcddb20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parsing XML with Pipeline script

2016-12-01 Thread David Karr
The default security restrictions are very tight.  There are many
things you can't do that would severely restrict any reasonable
scripting approach. If you control the scripts you run, there's little
point to not removing restrictions for the methods you need to call.

On Thu, Dec 1, 2016 at 8:26 AM,   wrote:
> I was trying to parse and XML file with XmlSlurper like described here
> (http://groovy-lang.org/processing-xml.html)
>
> def text = '''
> 
> 
> Groovy
> 
> 
> '''
>
> def list = new XmlSlurper().parseText(text)
>
> println list.technology.name.text()
>
> Using a GPath expression like this list.technology.name.text() works fine
> but requires an admin to allow "method groovy.lang.GroovyObject getProperty
> java.lang.String" which the script security plugin recommends against
> ("Approving this signature may introduce a security vulnerability! You are
> advised to deny it."). Since I am not the owner of the Jenkins instance, I
> am not sure I can convince them this is OK to approve.
>
> Is there a way to write the code such that it does not depend on
> GroovyObject.getProperty being permitted? Or is there someway to configure
> Jenkins so that this can work?
>
>
>
> --
> 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/648ea072-7465-4bfb-8254-ea870e1801b3%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/CAA5t8VrEFKk8Mo-FzW%2BXvJeZr0i--tp1zTjiLt60Ziq3HppFEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to download and view all previous artifacts from artifactory

2016-12-01 Thread Victor Martinez
Besides of that, is your question about Jenkins  itself or artifactory?

-- 
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/7e599d52-66ea-4dcc-b777-79386661f2e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to download and view all previous artifacts from artifactory

2016-12-01 Thread Victor Martinez
I'm not sure if I understood correctly what you mean, as far as i understand 
those artifacts are generated and uploaded from jenkins with some plugins, what 
do you mean about you cannot pull other artifacts but the latest one from 
Jenkins? How do you pull them? Did it work previously? And also where do you 
pull them from? 

The more details the better about what you expect, why, versions, what errors 
warnings did you see and so on


Cheers

-- 
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/660112fe-adb1-4680-89b8-e69b71a08522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Parsing XML with Pipeline script

2016-12-01 Thread harold . putman
I was trying to parse and XML file with XmlSlurper like described here 
(http://groovy-lang.org/processing-xml.html)

def text = '''


Groovy


'''

def list = new XmlSlurper().parseText(text) 

println list.technology.name.text()

Using a GPath expression like this list.technology.name.text() works fine 
but requires an admin to allow "method groovy.lang.GroovyObject getProperty 
java.lang.String" which the script security plugin recommends against 
("Approving this signature may introduce a security vulnerability! You are 
advised to deny it."). Since I am not the owner of the Jenkins instance, I 
am not sure I can convince them this is OK to approve. 

Is there a way to write the code such that it does not depend on 
GroovyObject.getProperty being permitted? Or is there someway to configure 
Jenkins so that this can work?



-- 
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/648ea072-7465-4bfb-8254-ea870e1801b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get-Content : Cannot find path

2016-12-01 Thread aaron . trujillo



This is ran as a PowerShell exectued by Jenkins.  I have attached the 
console output for reference

.

On Wednesday, November 30, 2016 at 6:19:51 PM UTC-7, ok999 wrote:
>
> More info needed. Is this executed as a powershell script via jenkins or 
>  via the pipeline script or executed as a batch command (but feeding a 
> powershell code)?
> What does the console error look like? 
>
>  
>
>
> On Wed, Nov 30, 2016 at 6:39 PM,  
> wrote:
>
>> $FilePath = 'C:\Windows\System32\inetsrv\config\applicationHost.config'
>> $Line2Edit = ''
>> $AppendAllow =  '> />' 
>>  
>> (Get-Content -Path  $FilePath) -replace $Line2Edit , "$AppendAllow" |
>> Set-Content $FilePath
>>
>> Just as the title states, Jenkins cannot find the desired path.  Yes, the 
>> path exists, yes i have checked to make sure.  
>>
>> When i run the the PowerShell script local it runs just fine, which leads 
>> me to believe its a permission issue, but Jenkins has admin rights and 
>> should be able to make any changes necessary.
>>
>> PowerShell runs 64 bit,  not sure about Jenkins however...
>>
>> Anybody have any suggestions?
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/df81ec10-6f58-478c-a0f4-8fe4a43c4eb0%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Regards
> nirish okram
>

-- 
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/16ee13e2-ccd1-4cce-9b09-b62160fbd300%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: pipeline.. sometimes slaves just hang

2016-12-01 Thread Jonathan Hodgson
It seems it was the windows slave specifically that was blocking things. 
When I stopped the slave app the OSX slave kicked into action.

The questions above still apply.

On Thursday, December 1, 2016 at 1:39:33 PM UTC, Jonathan Hodgson wrote:
>
> Hi,
>
> Right now I'm looking at a pipelne job which has been hung on two slaves 
> for over two hours.
>
> Both slaves (one windows, one OSX) show as being connected, and the slave 
> is still running on both, but both are stalled... one on starting a batch 
> script, the other either in the shell script or just after it.
>
> The Job has run without issue before.
>
> This raises a couple of questions
>
> 1) What might be causing this (I've had mystery hangs before).
> 2) How can I investigate it
>
> and 
>
> 3) Is there a way I can implement some sort of time out? If there has been 
> no activity from the slave for a given period of time I'd prefer it if the 
> build ended and I received an email telling me there had been a problem. As 
> it is, I'm unaware of the problem unless I check, (which sort of negates 
> the point of an autobuild), and the build system is effectively usefless 
> until I go there and stop the build.
>

-- 
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/1063f330-4781-4696-8004-7d134b9d26b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


pipeline.. sometimes slaves just hang

2016-12-01 Thread Jonathan Hodgson
Hi,

Right now I'm looking at a pipelne job which has been hung on two slaves 
for over two hours.

Both slaves (one windows, one OSX) show as being connected, and the slave 
is still running on both, but both are stalled... one on starting a batch 
script, the other either in the shell script or just after it.

The Job has run without issue before.

This raises a couple of questions

1) What might be causing this (I've had mystery hangs before).
2) How can I investigate it

and 

3) Is there a way I can implement some sort of time out? If there has been 
no activity from the slave for a given period of time I'd prefer it if the 
build ended and I received an email telling me there had been a problem. As 
it is, I'm unaware of the problem unless I check, (which sort of negates 
the point of an autobuild), and the build system is effectively usefless 
until I go there and stop the build.

-- 
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/0929cebb-f911-461b-9da0-510df42463db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to download and view all previous artifacts from artifactory

2016-12-01 Thread pradeep palem
Hi All,

Please help me on this .

Thanks in advance .
Pradeep 


On Wednesday, November 30, 2016 at 12:55:02 PM UTC+5:30, pradeep palem 
wrote:
>
> Hi All,
> I am trying to deploy the ant and maven artifacts to artifactory .
>
> I can able to deploy the artifacts , but when i trying to download or veiw 
> all artifacts from artifactory, i am able to download only latest artifacts 
> and veiw only latest.
>
> I want to see all the artifacts and i want to download the previous 
> artifacts.
>
> Currently i am handling thru jenkins plugin .
>
> Please help me on this .
>
> Thanks in advance.
>
> Regards,
> Pradeep
>
>

-- 
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/ade93761-54a3-4ab9-8cd8-a5bc8d8fc0e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Support Version

2016-12-01 Thread Victor Martinez
Hi Karthick,

It's worth if you read the below entry about asking questions in mailing 
lists... otherwise people won't be able to understand your request and 
therefore help 
- https://jenkins.io/content/mailing-lists/ ( How to ask questions the 
smart way.  )

You can find further details about ALM jenkins plugin in the below wiki 
page:
- https://wiki.jenkins-ci.org/display/JENKINS/HP+Application+Automation+Tools

Cheers

On Thursday, 1 December 2016 11:12:28 UTC, Karthick Velumani wrote:
>
> Hi,
>
> Support Versions of Jenkins for ALM 12.53?
>
> Br,
> Karthick
>

-- 
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/f8197cd6-89cf-409a-abef-1f994b3c6ddf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Support Version

2016-12-01 Thread Karthick Velumani
Hi,

Support Versions of Jenkins for ALM 12.53?

Br,
Karthick

-- 
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/fbf15aef-6825-46e0-a0a8-eb0797631ca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.