trigger new build when creating a new tag in SVN

2016-08-31 Thread yuki
Hi,
 I got Jenkins installed to build periodically against a project in SVN 
(using polling). I like in addition to that Job that is is correctly 
working, to have another job that would trigger only when I add a new tag 
to the project in the SVN, and have it do do this things:
1) build the project
2) zip the project and copy it to a backup drive.

I figured out I could write a .bat script to the zipping, moving part. But 
i cannot figure out to make the process happen automatically when the 
project gets a new tag. How can this be achieved? How can I configure 
Jenkins to the detect that a new tag has been added to the repository and 
make it act in consequence?

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/e9d5c774-cff4-4ba8-b461-20714f50fc9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Hide/Show button doesn't show up

2016-08-31 Thread Fadi Al-Farah
It was a dumb mistake on my part.. JQuery plugin wasn't installed therefore 
the JS file wasn't working as intended.

On Thursday, August 18, 2016 at 4:06:06 PM UTC-4, Daniel Beck wrote:
>
>
> > On 18.08.2016, at 19:43, Fadi Al-Farah  
> wrote: 
> > 
> > Weird thing is that they both have the same exact theme.css and 
> theme.js! And both are on version 2.7.2 LTS (latest LTS release) and both 
> have the same plugins installed and extremely similar configurations (there 
> are some differences in the Global Security settings).. 
> > 
> > Is there any idea why this might be happening? 
> > 
>
> Guessing, but likely that one allows anonymous read access while the other 
> does not. 
>
> /userContent is subject to this permission check. 
>
>

-- 
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/098cb0a1-373b-4374-818c-3b71c1c201f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Hide/Show button doesn't show up

2016-08-31 Thread Fadi Al-Farah
What do you mean? On the VM both "userContent" folders have the same 
permissions and same ownership.

On Thursday, August 18, 2016 at 4:06:06 PM UTC-4, Daniel Beck wrote:
>
>
> > On 18.08.2016, at 19:43, Fadi Al-Farah  
> wrote: 
> > 
> > Weird thing is that they both have the same exact theme.css and 
> theme.js! And both are on version 2.7.2 LTS (latest LTS release) and both 
> have the same plugins installed and extremely similar configurations (there 
> are some differences in the Global Security settings).. 
> > 
> > Is there any idea why this might be happening? 
> > 
>
> Guessing, but likely that one allows anonymous read access while the other 
> does not. 
>
> /userContent is subject to this permission check. 
>
>

-- 
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/bed77d14-d2a5-465e-b1a9-d09deb0c657d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adding “Perform Maven Release” option from Jenkinsfile

2016-08-31 Thread Harsha Adiga
Is there a way to make the Perform Maven Release option visible under the 
job created using Jenkinsfile? I have a job that is created manually and it 
has this option set by selecting the Maven release build option in 
Configure job->Build environment settings. I am trying to convert this 
manual job to pipeline job using Jenkinsfile. 

-- 
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/8acb90e0-bc1f-4cfc-b12e-74f3bc4991ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New Pipeline plugin: Pipeline Model Definition

2016-08-31 Thread Andrew Bayer
Oh, and I'll be presenting on this at Jenkins World on Thursday the 15th in
the afternoon, with a demo during lunch time, and will be around to chat
all week. =)

A.

On Tue, Aug 30, 2016 at 10:32 AM, Andrew Bayer 
wrote:

> Hey all -
>
> I've released a first preliminary version (0.1) of a new plugin, Pipeline:
> Model Definition. It's intended to provide a more config-like/declarative
> way to define Pipelines, with features like better syntactic/semantic error
> messages, an easy way to specify notifications or post-build actions to run
> regardless of build status, and more.
>
> It's still very early on - this is basically an MVP, so I wouldn't
> recommend using it in production yet, but I intend to keep backwards
> compatibility working as we go forward. You can find the repo at
> https://github.com/jenkinsci/pipeline-model-definition-plugin, with early
> docs at https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki
> and a spec for the model syntax at https://github.com/jenkinsci/
> pipeline-model-definition-plugin/blob/master/SYNTAX.md - I'd love
> feedback! Thanks!
>
> A.
>

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


Re: Not able to see Jenkin's execution in local desktop

2016-08-31 Thread jerome
The best you can do now, is create a normal loggable account and set the 
Jenkins service to run under that account. I had to do this for unit tests 
that required some OpenGL and other environment features.

-- 
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/9af697e4-79b4-4b5e-b45e-4ddfd7aaa168%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get list of all the plugins installed on jenkins server without cli or without logging in ?

2016-08-31 Thread user_dev

Hi , I need to check what are plugins installed on a specific jenkins 
server. I tried to use cli but it needs jnlp port which I cannot configure 
as i donot have permission. Is there a way I can find out this information. 
I checked config.xml but it do not mentions the list of plugins.

-- 
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/c487ac34-d878-41e2-9488-310876c42e54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multibranch triggers configuration

2016-08-31 Thread Spamme
Hello, I was testing the multibranch job in jenkins (1.642.4) because I
wanted to trigger a (visual studio) build after each commit in a branch,
because it happens very often that our developers commit broken code.
I had configured the multibranch project with the jenkinsfile and it builds,
after I wanted to trigger the build with a web hook from visualsvn (I hope
to switch soon to github), but I discovered later that this feature is
broken (https://issues.jenkins-ci.org/browse/JENKINS-33020). The other two
available options are: "Build Periodically", what is a bad idea and
"Periodically if not otherwise run", which doesn't seem to better than the
former. There also no SCM poll option. Therefore I'm quite puzzled, how
should be used this multibranch job? How it can be configured to build a
branch as soon as something is committed to the SCM? Because the only
trigger that could do it is broken since months, therefore there should be
another way to achieve it, or not?



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Multibranch-triggers-configuration-tp4838717.html
Sent from the Jenkins users mailing list archive at Nabble.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/1472659649620-4838717.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.


Attachment filepath does not support token reference

2016-08-31 Thread Dhatchanamoorthy Ramasamy
I am trying to send the failure screenshot as the email attachment.

The ${Build_NUmber} variable not working in attachment text box.

can you please let me know what variable I need to use to get the build 
number

-- 
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/6c10c768-d884-4cf9-9a29-45ea0298299c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Problems using retry() when failures occur in pipeline

2016-08-31 Thread Mike Kingsbury
I have a fairly simple block of code we run to update a system, that 
occasionally fails due to problems outside our control.  I thought this 
would be a great place to wrap it in a retry block.  The problem I have is 
that even though the retry block is successful later on, it fails the build 
at the end due to the earlier failure. I also tried unsuccessfully to wrap 
this in a try/catch without much luck.  Any suggestions on how to not fail 
a build if the retry block is successful? (I may just pull this out into a 
separate shell script at this point...)



int retry_count = 0
retry(25){
  if ( retry_count != 0 ) {
sleep(10)
  }
  retry_count++
  sh 'sudo apt -y autoremove'

  sh 'sudo apt-get update'
  sh 'sudo apt-get -y -f upgrade'
  sh './make-deps.sh'
}


-- 
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/e325c302-55c1-4c45-8604-20976e23dc43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins working with DB

2016-08-31 Thread Виталий Фёдоров
Greetings, post my question here, because no information found at all in 
the net:
I have next workflow:
1. User commit code to the git.
2. User use tool sqitch (http://sqitch.org/) (not advertisement) for 
helping commit sql files. Also this sqitch tracks which sql files need to 
run before the other
3. After it jenkins should deploy sql files from git in production and 
update database
Is it real to update DB with Jenkins? I have some experience in working 
with Jenkins, but have no idea, where to start in this task. 
Best regards!

-- 
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/888263e1-10db-4b10-ae14-680d23e1e06f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Github status per stage & Github PR comments

2016-08-31 Thread Sebastien Arod
Hi,

I'm using Jenkins with JenkinsFile and Github Organization Folder and it 
works great out of the box so I must start with a big thank you.

However there is 2 things that I'm not able to achieve currently and I'd 
like to know if it is a lack of documentation or a missing feature:

1. Github status per stage instead of per build

I'd like to add several status per build instead of one to allow:
* Seeing stages progress from github
* Allow merging PR into master even if some optional stages failed or are 
not completed yet

Is there a way to configure Jenkins Github Organization Folder plugin to 
notify github with a status per stage instead of a status per build?
Alternatively is there a way to use the github api from the JenkinsFile to 
publish status? If so does anyone have examples/documentation of how this 
can be achieved?

2. PR comments from JenkinsFile

I would like to be able to publish custom comments in a github PR from the 
Jenkinsfile. That would be very useful to provide error summary and links 
to failure details.

Alternatively is there a way to use the github api from the JenkinsFile to 
publish comments? If so does anyone have examples/documentation of how this 
can be achieved?


Cheers,
-Seb

-- 
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/5ea30a68-ea89-4b67-98ac-b6a928554624%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Subversion Release Manager - Can't take build with Specific Revision

2016-08-31 Thread Harry G.
Hi,

you are using a quite outdated and unsupported plugin (see its wiki page).
And additionally it unsecessarily uses a patched SVN plugin.

A much easier way is to just add "@" to your SVN URL.
You can even use build parameters for this, like 
"@${parameter_name}"

Hope this helps!

Harald

(btw.: this is a OSS mailing list, not "Support" :-)

On Tuesday, 30 August 2016 08:04:02 UTC+2, linson...@teknowmics.com wrote:
>
> Hello Support,
>
> Recently we have got an issue with Subversion Release Manager plugin where 
> we cannot take build using specific revision number. We have noticed the 
> issue after upgrading Jenkins to version Jenkins ver. 2.7.1 
>  from Jenkins 1.6.  Earlier we were able to take 
> builds using specific revision number using Subversion Release Manager 
> plugin. But after upgrade, it always take build using HEAD revision number 
> only even though we choose specific revision number while taking the build. 
> Is this reported issue and do we have any fix for this ?
>
> In order to resolve this issue for the time being, we had to downgrade the 
> Jenkins version back to ver. 1.639
>
>
>

-- 
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/aa1799a9-4eb0-4254-ad1b-bbd030185957%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Creating Docker image from jenkins

2016-08-31 Thread Gokul nath
Hi,

How to create docker deployable image from jenkins 2.x version. I tried 
docker plugin for jenkins and it is not working as expected. What is the 
right way to do this?


Thanks
Gokul

-- 
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/ba63bddd-9600-4eb0-a72e-6458d92291f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.