Releasing with declarative pipeline

2017-12-27 Thread Ari Maniatis
I'm starting to experiment with Jenkinsfile configuration and its mostly 
coming together. Probably the hardest thing is sorting out which 
instructions are for the old script syntax and which for the new 
declarative syntax. Probably a few years from now stackoverflow will have 
more correct answers than wrong ones.

Anyhow, I'm stuck on understanding how we are supposed to perform a 
release. Today we use the release plugin so there is a 'release' button 
directly in the UI which performs different (additional) gradle steps after 
the build is successful. In addition, there is a field to type in a version 
number for this release.

All that works well, so something similar would be great. I'm also open to 
other ideas like committing a tag in svn, but I can't see how that would 
work either since I'm only tracking one branch in jenkins. Checking out 
every branch would be horrendous.

Thanks for any pointers.

-- 
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/0abf55b1-a2b5-41d4-8eb7-b974120f66f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I purge/clobber stashed files?

2017-12-27 Thread Mark Waite
That seems like a bug to me if I've understood your phrasing correctly.

I don't expect the stash from one build (for example, build number 14) to
be included in later builds (for example, build number 15).

Within a single build (for example, build number 14), I would initially
assume (until proven otherwise) that multiple references to write to a
stash of the same name would append to a single stash.

Mark Waite

On Wed, Dec 27, 2017 at 10:44 AM red 888  wrote:

> Jenkins docs
> 
>  seem
> ambiguous about this:
>
> Stashed files are not otherwise available and are generally discarded at
> the end of the build.
>
> S "generally" means what? They *should* get discarded by default? Do
> I need to do something to have them discarded?
>
>
> Because my stashed files aren't getting discarded. I run this in my job:
>
> stash name: "myZip", includes: "${differentEveryTime}.zip"
>
>
> And every time the job runs it keeps adding the new zip file to the
> "myZip" stash.
>
> I couldn't find anything in the docs about how to control this. I want
> myZip to clobber everything previously or start empty each job run.
>
> --
> 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/b879399c-2179-485c-bfdc-793769b70227%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/CAO49JtF-34WcWgL%2BUVHnzgLF75yD3vvyvph-q2v40mayQeWOvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How do I purge/clobber stashed files?

2017-12-27 Thread red 888


Jenkins docs 

 seem 
ambiguous about this:

Stashed files are not otherwise available and are generally discarded at 
the end of the build.

S "generally" means what? They *should* get discarded by default? Do I 
need to do something to have them discarded?


Because my stashed files aren't getting discarded. I run this in my job:

stash name: "myZip", includes: "${differentEveryTime}.zip"


And every time the job runs it keeps adding the new zip file to the "myZip" 
stash.

I couldn't find anything in the docs about how to control this. I want 
myZip to clobber everything previously or start empty each job run.

-- 
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/b879399c-2179-485c-bfdc-793769b70227%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins parallel streams with local files?

2017-12-27 Thread red 888
Thanks! That was just what I needed, but now I have a question about how to 
clear out the stash for each run. Just made a new post for this question.

On Friday, December 22, 2017 at 7:18:47 PM UTC-5, Mark Waite wrote:
>
> The "stash" step stores files from a workspace.  The "unstash" step 
> retrieves previously stored stashes.
>
> Mark Waite
>
> On Fri, Dec 22, 2017 at 5:16 PM red 888  > wrote:
>
>> My parallel steps need access to a local file in the workspace of the 
>> job. But it seems they can access it?
>>
>> I tried listing the workspace in each stream:
>>
>>
>> powershell "ls ${workspace}"
>>
>>
>> they are all empty! Each stream has its own workspace and the output of 
>> each stream ls C:\workspace\branch_name@ shows no files.
>>
>> How they get access to the main workspace? they're pretty much useless to 
>> me if they can't even access local files.
>>
>>
>> I understand this could create a race condition, is there at least a 
>> feature to copy files from the main workspace to the stream workspaces?
>>
>> -- 
>> 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/6ecc868e-4493-4056-9938-152b45b79f8d%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/dff0f128-856f-4421-afbb-0e1573ada850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins not found elements with JS.

2017-12-27 Thread Lucio Amorim
Hello.

First, sorry my poor english, i am braziliam and not speak good.

My Jenkins show the message 'element no found' during the test with 
selenium in the webpage but in Eclipse not have a problems with the test.
I used the getPageSource during the test for the return the HTML, the HTML 
not have the element.
nothing with JS is found in the HTML.

:(


 

-- 
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/d59d8847-5042-492c-ac8e-05ddbb3cda45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to change the Jenkins Time Zone

2017-12-27 Thread Chicago
What is your user.timezone in Jenkins? Go to /system info and look for 
user.timezone 

Sincerely, 
GnuPG

4483fad9f893eaf6f32cac12d46c17f6b63de06a

-- 
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/80F7F223-EC2F-40C9-80AA-798AA45AB3DE%40airmail.cc.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature