Re: How to integrate Jenkins with Google LDAP service

2019-02-12 Thread Alex Domoradov
Any advise?

On Monday, February 11, 2019 at 1:37:45 PM UTC+2, Alex Domoradov wrote:
>
> Hello,
>
> Does anyone has successes in such kind of integration? Because Google LDAP 
> service requires certificate authentication I can't point Jenkins directly 
> to the ldaps://ldap.google.com. I have tried to use stunnel but without 
> success.
>
> Jenkins: 2.150.2
> LDAP plugin: 1.20
>
> Jenkins settings
>
> https://i.imgur.com/rShdcmR.png
>
> https://i.imgur.com/RC0crE9.png
>
> 172.17.0.1 is the address of stunnel. I use the following config with 
> stunnel
>
> # cat /etc/stunnel/ldap.conf 
> [ldap]
> client = yes
> accept = 127.0.0.1:389
> connect = ldap.google.com:636
> cert = /etc/stunnel/gldap.crt
> key = /etc/stunnel/gldap.key
>
>
> Also I have tried to import google certificate and private key to my own 
> keystore
>
> $ openssl pkcs12 -export -out ldap.google.com.pkcs12 \
>
> -inkey gldap.key -in gldap.crt
>
>
> $ keytool -v -importkeystore -srckeystore ldap.google.com.pkcs12 \
>
> -srcstoretype PKCS12 -destkeystore cacerts -deststoretype JKS
>
>
> and point Jenkins to it
>
> -Djavax.net.ssl.keyStore=/var/jenkins_home/.cacerts/cacerts 
> -Djavax.net.ssl.keyStorePassword=changeit
>
>
> But without success. Did I miss something?
>
>

-- 
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/beec4da0-439c-4a60-958e-70bd47df2d27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to integrate Jenkins with Google LDAP service

2019-02-11 Thread Alex Domoradov
Hello,

Does anyone has successes in such kind of integration? Because Google LDAP
service requires certificate authentication I can't point Jenkins directly
to the ldaps://ldap.google.com. I have tried to use stunnel but without
success.

Jenkins: 2.150.2
LDAP plugin: 1.20

Jenkins settings

https://i.imgur.com/rShdcmR.png

https://i.imgur.com/RC0crE9.png

172.17.0.1 is the address of stunnel. I use the following config with
stunnel

# cat /etc/stunnel/ldap.conf
[ldap]
client = yes
accept = 127.0.0.1:389
connect = ldap.google.com:636
cert = /etc/stunnel/gldap.crt
key = /etc/stunnel/gldap.key


Also I have tried to import google certificate and private key to my
own keystore

$ openssl pkcs12 -export -out ldap.google.com.pkcs12 \

-inkey gldap.key -in gldap.crt


$ keytool -v -importkeystore -srckeystore ldap.google.com.pkcs12 \

-srcstoretype PKCS12 -destkeystore cacerts -deststoretype JKS


and point Jenkins to it

-Djavax.net.ssl.keyStore=/var/jenkins_home/.cacerts/cacerts
-Djavax.net.ssl.keyStorePassword=changeit


But without success. Did I miss something?

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


Re: Docker host and Jenkins on separate machines...

2017-05-19 Thread Alex Domoradov
Not sure what do you mean by "By default Jenkins supposes to be able to  
start docker containers on the same host as itself,". 
Because we are using Jenkins with AWS ECS cluster without any problems. And 
our slave nodes are different EC2 instances from master node. 

On Friday, May 19, 2017 at 10:20:52 AM UTC+3, Kirill Peskov wrote:
>
> Hi All, 
>
> I'm googling already about an hour if not longer, but I really cannot 
> find an answer to quite simple question: "How to setup Jenkins to 
> connect to a Docker host (or multiple Docker hosts later on) running on 
> a separate machine(s)? Docs on the jenkins.io site seem to be not really 
> verbose about such a setup... By default Jenkins supposes to be able to 
> start docker containers on the same host as itself, but that's not my 
> case. 
>
> Cheers, 
> Kirill 
>
>

-- 
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/53cd4406-dbaf-48df-80c4-2da6727901eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Role strategy plugin: how to give specific access

2017-05-19 Thread Alex Domoradov
Thanks a lot. It is exactly what I was looking for. It works like a charm

On Thursday, May 18, 2017 at 6:42:36 PM UTC+3, Artur Szostak wrote:
>
> I believe you need to install "Extended Read Permission Plugin" to add an 
> additional cell to the permission table. Then you can select/check the 
> "ExtendedRead" option rather than the "Configure" option to give read only 
> access to the job's configuration. 
>
>  
> From: jenkins...@googlegroups.com  <
> jenkins...@googlegroups.com > on behalf of Alex Domoradov <
> alex...@gmail.com > 
> Sent: 18 May 2017 17:32:08 
> To: Jenkins Users 
> Subject: Role strategy plugin: how to give specific access 
>
> Hello, 
>
> we have been using role strategy plugin for a few years. And it works 
> fine. But now we need to give specific access to specific users. We need 
> that people will be able to view configuration of a job but at the same 
> time they won't be able to change the configuration itself. Is it possible 
> to configure the plugin in such way? 
>
> Thanks in advance 
>
> -- 
> 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  jenkinsci-users+unsubscr...@googlegroups.com >. 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/bf2694a2-6686-4439-9cd8-6a77a6ee0aec%40googlegroups.com
> <
> https://groups.google.com/d/msgid/jenkinsci-users/bf2694a2-6686-4439-9cd8-6a77a6ee0aec%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  
>
> 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/b26e23c6-8cef-4518-ab01-e9a164c504d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Role strategy plugin: how to give specific access

2017-05-18 Thread Alex Domoradov
Hello,

we have been using role strategy plugin for a few years. And it works fine. 
But now we need to give specific access to specific users. We need that 
people will be able to view configuration of a job but at the same time 
they won't be able to change the configuration itself. Is it possible to 
configure the plugin in such way?

Thanks in advance

-- 
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/bf2694a2-6686-4439-9cd8-6a77a6ee0aec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Always run specific build/postbuild step

2017-04-11 Thread Alex Domoradov
Thanks Richard, but it seems I had found alternative solution.

I got the same result with Execute a set of scripts in Post-build Actions -
http://i.imgur.com/g9wMKPW.png

On Tue, Apr 11, 2017 at 3:21 PM, Richard Ginga 
wrote:

> your Step 1 returns 1 which is a failure and Jenkins is always going to
> stop build execution at that point. no other "build steps" will be
> executed.
>
> You can install the flexible publish plugin (this lets you can run many
> build steps in the Post-build phase). the condition can be set to test the
> "Current build status" where you can set Worst as Failed and best as
> Success, then I think it will always run.
>
>
> On Mon, Apr 10, 2017 at 5:29 PM, Alex Domoradov 
> wrote:
>
>> Hello,
>>
>> is it possible at all? I have tried to use Conditional BuildStep with
>> condition "Always" but without success. I have two build step each of them
>> is shell script.
>>
>> Build step1 - Execute shell
>> #!/bin/bash -ex
>>
>> echo "*** STEP1 ***"
>> exit 1
>>
>> Build step2 - Execute shell
>> #!/bin/bash -ex
>>
>> echo "*** STEP2 ***"
>> exit 0
>>
>> Conditional step (single)
>> Run?: Always
>> Builder: Execute shell
>> #!/bin/bash
>>
>> echo "%%% CLEAN %%%"
>>
>> With such settings I get the following result
>>
>> Started by user Alex
>> [EnvInject] - Loading node environment variables.
>> Building on master in workspace /usr/share/tomcat8/.jenkins/workspace/temp
>> Run condition [Always] enabling prebuild for step [Execute shell]
>> [temp] $ /bin/bash -ex /var/cache/tomcat8/temp/hudson8076614436373471043.sh
>> + echo '*** STEP1 ***'
>> *** STEP1 ***
>> + exit 1
>> Build step 'Execute shell' marked build as failure
>> Finished: FAILURE
>>
>> P.S.
>> Jenkins ver. 1.652
>>
>> --
>> 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/ms
>> gid/jenkinsci-users/0c5b0978-570f-4871-b2cc-4ca806774dbb%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/0c5b0978-570f-4871-b2cc-4ca806774dbb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Dick Ginga
> Build Engineer
> rgi...@disruptorbeam.com
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/515uGxnDt64/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAL3PpaXQpOg_PCwKJ-KAgbQDYNHqumnqa5w7s4yrkgw%
> 3DgnsFow%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAL3PpaXQpOg_PCwKJ-KAgbQDYNHqumnqa5w7s4yrkgw%3DgnsFow%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAK90gp4Vi%3DyD970o6uKLe0AAVytn3LkYD4U-hPLTi6Aa0GtJ8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Always run specific build/postbuild step

2017-04-10 Thread Alex Domoradov
Hello,

is it possible at all? I have tried to use Conditional BuildStep with 
condition "Always" but without success. I have two build step each of them 
is shell script.

Build step1 - Execute shell
#!/bin/bash -ex

echo "*** STEP1 ***"
exit 1

Build step2 - Execute shell
#!/bin/bash -ex

echo "*** STEP2 ***"
exit 0

Conditional step (single)
Run?: Always
Builder: Execute shell
#!/bin/bash

echo "%%% CLEAN %%%"

With such settings I get the following result

Started by user Alex
[EnvInject] - Loading node environment variables.
Building on master in workspace /usr/share/tomcat8/.jenkins/workspace/temp
Run condition [Always] enabling prebuild for step [Execute shell]
[temp] $ /bin/bash -ex /var/cache/tomcat8/temp/hudson8076614436373471043.sh
+ echo '*** STEP1 ***'
*** STEP1 ***
+ exit 1
Build step 'Execute shell' marked build as failure
Finished: FAILURE

P.S.
Jenkins ver. 1.652

-- 
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/0c5b0978-570f-4871-b2cc-4ca806774dbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Trigger new build only for the latest git tag

2016-09-04 Thread Alex Domoradov
Hello,

I have a really simple task - I need to configure jenkins job to build a 
code only when a new tags with specific names (for e.g. qa_1234567) are 
pushed to the git (github). I can't use webhooks because I don't have 
sufficient permissions to repository. So I have to use SCM polling model. I 
have configured freestyle job and specify the following info

Refspec
+refs/tags/*:refs/remotes/origin/tags/*

Branch Specifier (blank for 'any')
:.*/qa_[0-9]{6,10}$

All works fine except one thing. If I create a new tag and point it to any 
commit except head - it doesn't work. The job is not triggered. For e.g.

# git rev-parse HEAD
75c42ce06cbbff83e1640e4b7b28543ca6793167

# git tag qa_$(date '+%s') 863c7607 && git push -u origin --tags
Total 0 (delta 0), reused 0 (delta 0)
To ssh://g...@193.243.xxx.xxx:/test/p1.git
 * [new tag] qa_1472930540 -> qa_1472930540


I can see the new tag in SCP Polling log

Seen branch in repository origin/tags/qa_1472930009
Seen branch in repository origin/tags/qa_1472930540
Seen 41 remote branches
Done. Took 0.37 sec
No changes

With head revision all works fine

$ UT=$(date '+%s'); echo ${UT} > 1 && git add . && git commit -m "${UT}" && 
git push -u origin api
[api 8f80708] 1472931220
 1 file changed, 1 insertion(+), 1 deletion(-)
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 268 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To ssh://g...@193.243.xxx.xxx:/test/p1.git
   75c42ce..8f80708  api -> api
Branch api set up to track remote branch api from origin.

$ git tag qa_$(date '+%s') 8f80708  && git push -u origin --tags
Total 0 (delta 0), reused 0 (delta 0)
To ssh://g...@193.243.xxx.xxx:/test/p1.git
 * [new tag] qa_1472931234 -> qa_1472931234

Seen branch in repository origin/tags/qa_1472930009
Seen branch in repository origin/tags/qa_1472930540
Seen branch in repository origin/tags/qa_1472931137
Seen branch in repository origin/tags/qa_1472931234
Seen 43 remote branches
 > git log --full-history --no-abbrev --format=raw -M -m 
75c42ce06cbbff83e1640e4b7b28543ca6793167..8f807082e7c7dc3c33ea46dc6146b2bc5d3be3a8
 
# timeout=10
Done. Took 0.68 sec
Changes found

P.S.
I have read a lot of articles about the subject 

http://erics-notes.blogspot.com/2013/05/jenkins-build-latest-git-tag.html
http://www.cyber-tec.org/2015/09/20/build-last-git-tag-with-jenkins/

but can't find any suitable solution

Thanks in advance

-- 
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/72f3e6ee-1ef1-477b-ba74-5ce056b35c6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-09-02 Thread Alex Domoradov
You can use something like the following one

$ curl 
'http://admin:token@JENKINS_URL:8080/pluginManager/api/json?depth=1&?xpath=/*/*shortName|/*/*/version'
 
| python -mjson.tool

Or simple python script

import requests

response = 
requests.get('http://admin:token@JENKINS_URL:8080/pluginManager/api/json?depth=1&?xpath=/*/*shortName|/*/*/version')
data = response.json()['plugins']

for plugin in data:
print "%s:%s" % (plugin["shortName"], plugin["version"])

It will print something like the following
momentjs:1.1.1
build-pipeline-plugin:1.5.4
pipeline-input-step:2.1
branch-api:1.10
workflow-durable-task-step:2.4



> 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/70ade996-a284-42fc-9340-e86e5136ba84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: trigger new build when creating a new tag in SVN

2016-09-02 Thread Alex Domoradov
Have you tried Included Regions field?

If set, and Jenkins is set to poll for changes, Jenkins will ignore any 
files and/or folders that are *not* in this list when determining if a 
build needs to be triggered.

Each inclusion uses regular expression pattern matching, and must be 
separated by a new line.

This is useful when you need to check out an entire resource for building, 
but only want to do the build when a subset has changed.


/trunk/myapp/c/library1/.*
/trunk/myapp/c/library2/.*
  

If /trunk/myapp is checked out, the build will only occur when there are 
changes to either the c/library1 and c/library2 subtrees.


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/c8cd3c54-5157-4568-b423-cde9051421f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Changing git build creds

2016-04-23 Thread Alex Domoradov
Have you tried to clone the repo from the console?

$ GIT_SSH_COMMAND="ssh -i ~/.ssh/new-github.key" git clone 
g...@github.com:user/project.git



On Friday, April 22, 2016 at 9:00:14 PM UTC+3, Larry Martell wrote:
>
> I already did that. How can I see what it's getting "Permission denied" 
> on? 
>
> On Fri, Apr 22, 2016 at 1:34 PM, Indra Gunawan (ingunawa) 
> > wrote: 
> > Don’t you need to upload the SSH public key of the build user to your 
> > github? 
> > 
> > From: > on behalf of Larry 
> Martell 
> > > 
> > Reply-To: "jenkins...@googlegroups.com " 
> > > 
> > Date: Friday, April 22, 2016 at 9:20 AM 
> > To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com > 
> > Subject: Changing git build creds 
> > 
> > I am a new user to Jenkins, so please bear with me. 
> > 
> > The employee who set up Jenkins quit and we removed his access to our 
> github 
> > repo. But he had configured our automated build to access git as 
> himself, so 
> > of course that is failing now. I went into the project settings and 
> added a 
> > new credential for a user that does have access to our github repo, 
> along 
> > with their github password. Now when the build runs I get this: 
> > 
> > Permission denied (publickey). 
> > 
> > What else do I have to do to switch the user that accesses our repo for 
> > builds? 
> > 
> > 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/381724e0-3338-451c-be20-76a8140277ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: permission denied error when copying files in jenkins

2016-04-22 Thread Alex Domoradov
You can check in the server console

# su -l jenkins -s /bin/bash -c 'cp /location/path1/file1.txt 
/location2/path2/file1.txt'

On Thursday, April 21, 2016 at 11:53:59 PM UTC+3, Pradeep Patra wrote:
>
> Hi all,
> .  I have created a Jenkins server (master) and tried copying from one 
> location/path of jenkins server to another  location a Perl script within 
> the same server. I have changed all the file/ folders for Jenkins 
> user/group(chown,chgrp)and restarted the Jenkins server. While copying 
> files I an getting error " regular file cp failed: Permission denied error 
> after trigerring the Jenkins job which uses script to copy files. Can 
> anyone help in this please?
>
> 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/d34510b8-d16d-423e-8450-d3c93a38f913%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add credentials in pipeline script

2016-04-20 Thread Alex Domoradov
You could try something like this

node {
  withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 
'mylogin',
usernameVariable: 'USERNAME', passwordVariable: 
'PASSWORD']]) {
sh '''
  set +x
  curl -u $USERNAME:$PASSWORD https://private.server/ > output
'''
  }
}

https://www.cloudbees.com/blog/workflow-integration-credentials-binding-plugin



On Wednesday, April 20, 2016 at 2:05:57 PM UTC+3, Onno van der Straaten 
wrote:
>
> Hi,
> I changed the example pipeline script a bit to test if it would work using 
> Subversion. The repository that I want to use does not allow anonymous 
> access. Is it possible to add credentials?
> Cheers,
> Onno
>
> node {
>// Mark the code checkout 'stage'
>stage 'Checkout'
>
>// Get some code from a GitHub repository
>svn url: 'https://mysvnurl
>
>// Get the maven tool.
>// ** NOTE: This 'M3' maven tool must be configured
>// **   in the global configuration.   
>def mvnHome = tool 'Maven 3.2.5'
>
>// Mark the code build 'stage'
>stage 'Build'
>// Run the maven build
>sh "${mvnHome}/bin/mvn clean install"
> }
>

-- 
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/69a99ec8-19b4-4cc7-a519-92e96def8d02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to 'Discard old builds' without running job?

2016-04-20 Thread Alex Domoradov
You have to add public key at user profile page

http://jenkins.example.net:8080/user/user_name/configure

On Wednesday, April 20, 2016 at 10:40:23 AM UTC+3, David Aldrich wrote:
>
> Hi Daniel 
>
> > Use SSH key based authentication. Known bug with passwords when anon 
> does 
> > not have read access to the job. 
>
> Thanks for your reply. Could you please give me a pointer how to use SSH 
> key based authentication? I'm running the CLI on the Jenkins master - it is 
> accessing localhost. 
>
> Best regards 
>
> David 
>

-- 
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/f0f5bd6a-9503-4e61-b119-5c5fe6f38ff2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How many jobs can handle by Jenkins master?

2016-04-20 Thread Alex Domoradov
@Dennys Hsieh
How many executors you have configured on the master node?

On Wednesday, April 20, 2016 at 9:13:47 AM UTC+3, Daniel Beck wrote:
>
> Would be interesting to know what's the output of /threadDump when this is 
> going on. 18 builds is much less than Jenkins should be able to handle. 
>
> > On 20.04.2016, at 06:45, dennys > 
> wrote: 
> > 
> > We use 1 Jenkins and 30 Jenkins slaves. 
> > (Jenkins master doesn't build code, only slaves build code.) 
> > But when there are about 18 build jobs at the same time, Jenkins will 
> hang 
> > for a while. 
> > 
> > Jenkins master has 16 cores and the CPU loading is about 50% when the 
> server 
> > is hang. 
> > The following is the JVM parameter, is there any suggestion for it? 
> > 
> > -Xms4096m 
> > -Xmx4096m 
> > -XX:MaxPermSize=800M 
> > -XX:+UseParallelOldGC 
> > -XX:+HeapDumpOnOutOfMemoryError 
> > -Dorg.eclipse.jetty.server.Request.maxFormContentSize=500 
> > 
> > 
> > 
> > -- 
> > View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/How-many-jobs-can-handle-by-Jenkins-master-tp4808004.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-use...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/1461127511665-4808004.post%40n4.nabble.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/f2920d6f-de6b-4a43-9bc5-c405ec28e648%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
Hmm, but he had used "--username=daldrich"

On Tuesday, April 19, 2016 at 11:47:32 PM UTC+3, Daniel Beck wrote:
>
>
> > On 19.04.2016, at 17:06, David Aldrich  > wrote: 
> > 
> > Any idea why please? 
>
> Use SSH key based authentication. Known bug with passwords when anon does 
> not have read access to the job. 
>
>

-- 
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/cb1f8aca-3051-4025-9a06-ccce96ede39c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
Just for test - rename the job just to "test" for example and try again

On Tuesday, April 19, 2016 at 7:12:15 PM UTC+3, David Aldrich wrote:
>
> 1.656
>
>  
>
> *From:* Alex Domoradov [mailto:alex...@gmail.com ] 
> *Sent:* 19 April 2016 17:11
> *To:* Jenkins Users >
> *Cc:* alex...@gmail.com ; David Aldrich <
> david@emea.nec.com >
> *Subject:* Re: How to 'Discard old builds' without running job?
>
>  
>
> It's a really strange. What version of jenkins are you using?
>
> On Tuesday, April 19, 2016 at 6:06:56 PM UTC+3, David Aldrich wrote:
>
> Hi Alex
>
>  
>
> This isn’t working for me. I see:
>
>  
>
> $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s 
> http://localhost:8090/jenkins/ list-jobs --username=daldrich
>
> Check_svn_config
>
>  
>
> $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s 
> http://localhost:8090/jenkins/ delete-builds Check_svn_config 1514-1515 
> --username=daldrich
>
>  
>
> ERROR: No such job 'Check_svn_config'
>
>  
>
> Any idea why please?
>
>  
>
> David
>
>  
>
>  
>
> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
> Behalf Of *Alex Domoradov
> *Sent:* 19 April 2016 15:23
> *To:* Jenkins Users 
> *Cc:* alex...@gmail.com; David Aldrich 
> *Subject:* Re: How to 'Discard old builds' without running job?
>
>  
>
> You can get a list of jobs with the following command
>
> # java -jar jenkins-cli.jar -s http://localhost:8090/ list-jobs
>
> Hi Alex
>
>  
>
> Thanks for your reply. 
>
>  
>
> $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s 
> http://localhost:8090/jenkins/ delete-builds Check_svn_config 1514-1515
>
>  
>
> ERROR: No such job 'Check_svn_config'
>
>  
>
> I do have a job called 'Check_svn_config'. It’s in a certain folder. Do I 
> have to specify a path for it?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
> *From:* Alex Domoradov [mailto:alex...@gmail.com] 
> *Sent:* 19 April 2016 14:48
> *To:* Jenkins Users 
> *Cc:* David Aldrich 
> *Subject:* Re: How to 'Discard old builds' without running job?
>
>  
>
> You can use jenkins cli
>
> java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ 
> delete-builds LARGE_JOB BUILD_NUMBER
>
> for e.g.
>
> java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ 
> delete-builds test-job 10-20
>
> On Tuesday, April 19, 2016 at 1:23:23 PM UTC+3, David Aldrich wrote:
>
> Hi
>
>  
>
> We have a large job that has no 'Discard old builds' setting.
>
>  
>
> I want to set 'Discard old builds' to a sensible value and action it, to 
> delete some old builds, without actually running the job.  Is that possible?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
>  
>
> Click here 
> <https://www.mailcontrol.com/sr/W7u1A3zCXG3GX2PQPOmvUjDF5G4QKHNhj!ky277HXGsZckZkCjxU801LOFYk1bkUOpzDTo3yJQYhR!AbTPK7tQ==>
>  
> to report this email as spam.
>
> -- 
> 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/8a5a84e2-698d-43a3-ae34-59633bcfd687%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/8a5a84e2-698d-43a3-ae34-59633bcfd687%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/d409f90f-3b3b-4ade-a5d8-fe0278703fca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
It's a really strange. What version of jenkins are you using?

On Tuesday, April 19, 2016 at 6:06:56 PM UTC+3, David Aldrich wrote:
>
> Hi Alex
>
>  
>
> This isn’t working for me. I see:
>
>  
>
> $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s 
> http://localhost:8090/jenkins/ list-jobs --username=daldrich
>
> Check_svn_config
>
>  
>
> $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s 
> http://localhost:8090/jenkins/ delete-builds Check_svn_config 1514-1515 
> --username=daldrich
>
>  
>
> ERROR: No such job 'Check_svn_config'
>
>  
>
> Any idea why please?
>
>  
>
> David
>
>  
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Alex Domoradov
> *Sent:* 19 April 2016 15:23
> *To:* Jenkins Users >
> *Cc:* alex...@gmail.com ; David Aldrich <
> david@emea.nec.com >
> *Subject:* Re: How to 'Discard old builds' without running job?
>
>  
>
> You can get a list of jobs with the following command
>
> # java -jar jenkins-cli.jar -s http://localhost:8090/ list-jobs
>
> Hi Alex
>
>  
>
> Thanks for your reply. 
>
>  
>
> $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s 
> http://localhost:8090/jenkins/ delete-builds Check_svn_config 1514-1515
>
>  
>
> ERROR: No such job 'Check_svn_config'
>
>  
>
> I do have a job called 'Check_svn_config'. It’s in a certain folder. Do I 
> have to specify a path for it?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
> *From:* Alex Domoradov [mailto:alex...@gmail.com] 
> *Sent:* 19 April 2016 14:48
> *To:* Jenkins Users 
> *Cc:* David Aldrich 
> *Subject:* Re: How to 'Discard old builds' without running job?
>
>  
>
> You can use jenkins cli
>
> java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ 
> delete-builds LARGE_JOB BUILD_NUMBER
>
> for e.g.
>
> java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ 
> delete-builds test-job 10-20
>
> On Tuesday, April 19, 2016 at 1:23:23 PM UTC+3, David Aldrich wrote:
>
> Hi
>
>  
>
> We have a large job that has no 'Discard old builds' setting.
>
>  
>
> I want to set 'Discard old builds' to a sensible value and action it, to 
> delete some old builds, without actually running the job.  Is that possible?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
>  
>
> Click here 
> <https://www.mailcontrol.com/sr/W7u1A3zCXG3GX2PQPOmvUjDF5G4QKHNhj!ky277HXGsZckZkCjxU801LOFYk1bkUOpzDTo3yJQYhR!AbTPK7tQ==>
>  
> to report this email as spam.
>
> -- 
> 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/8a5a84e2-698d-43a3-ae34-59633bcfd687%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/8a5a84e2-698d-43a3-ae34-59633bcfd687%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/7ae2b92b-230c-4f9c-9ce9-1594154b3a12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
You can get a list of jobs with the following command

# java -jar jenkins-cli.jar -s http://localhost:8090/ list-jobs

Hi Alex
>
>  
>
> Thanks for your reply. 
>
>  
>
> $ java -jar /var/lib/jenkins/war/WEB-INF/jenkins-cli.jar -s 
> http://localhost:8090/jenkins/ delete-builds Check_svn_config 1514-1515
>
>  
>
> ERROR: No such job 'Check_svn_config'
>
>  
>
> I do have a job called 'Check_svn_config'. It’s in a certain folder. Do I 
> have to specify a path for it?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
> *From:* Alex Domoradov [mailto:alex...@gmail.com ] 
> *Sent:* 19 April 2016 14:48
> *To:* Jenkins Users >
> *Cc:* David Aldrich >
> *Subject:* Re: How to 'Discard old builds' without running job?
>
>  
>
> You can use jenkins cli
>
> java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ 
> delete-builds LARGE_JOB BUILD_NUMBER
>
> for e.g.
>
> java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ 
> delete-builds test-job 10-20
>
> On Tuesday, April 19, 2016 at 1:23:23 PM UTC+3, David Aldrich wrote:
>
> Hi
>
>  
>
> We have a large job that has no 'Discard old builds' setting.
>
>  
>
> I want to set 'Discard old builds' to a sensible value and action it, to 
> delete some old builds, without actually running the job.  Is that possible?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
>  
>
> Click here 
> <https://www.mailcontrol.com/sr/W7u1A3zCXG3GX2PQPOmvUjDF5G4QKHNhj!ky277HXGsZckZkCjxU801LOFYk1bkUOpzDTo3yJQYhR!AbTPK7tQ==>
>  
> to report this email as spam.
>

-- 
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/8a5a84e2-698d-43a3-ae34-59633bcfd687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to 'Discard old builds' without running job?

2016-04-19 Thread Alex Domoradov
You can use jenkins cli

java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ delete-builds 
LARGE_JOB BUILD_NUMBER

for e.g.

java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ delete-builds 
test-job 10-20

On Tuesday, April 19, 2016 at 1:23:23 PM UTC+3, David Aldrich wrote:
>
> Hi
>
>  
>
> We have a large job that has no 'Discard old builds' setting.
>
>  
>
> I want to set 'Discard old builds' to a sensible value and action it, to 
> delete some old builds, without actually running the job.  Is that possible?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>

-- 
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/dfaa15ad-4f5c-403d-bc0b-34a172f1fab5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to build files with different revisions

2016-04-19 Thread Alex Domoradov
Are these files (file1-file5) from the same repo?

On Tuesday, April 19, 2016 at 4:08:30 PM UTC+3, Prasanna Ujjani Mutt wrote:
>
> Hello all,
>Our environment is as below 
>
>-jenkins 1.655-0
>- java 1.7
>- tomcat 7.0.68
>
>
> We have a scenario as below. We wanted to know how to do the same.
>
> Say we have a project, which the developers are comitting into svn, daily 
> or quite frequently. say the project has 5 files...
> file1, file2, file3,  Done by developer 1
> file4 and file5, done by developer 2
>
> daily some classes and member functions are added, some of which are 
> integrated and finalized. But some of the classes are still under 
> development, but still they might have been comitted into svn Consider 
> the scenario below
>
> SVN version - 10 file1 and file 2 are finalized. But this svn revision 
> might have other files, which are not finalized
> SVN version - 11 file 3 is finalized. But this svn revision might have 
> other files, which are not finalized
> SVN version - 12 file 4 and file5 are finalized But this svn revision 
> might have other files, which are not finalized
> SVN head - 13 file1, file2, file3, file4 are comitted but with different 
> new code, which is still under development. so all files in this revision 
> are not finalized.
>
> We want to checkout specific files in different revision version, 10 (file 
> 1 and 2), 11(file 3) and 12 (file 4 and 5) and then trigger the build with 
> these files... 
>
> Is this possible using jenkins how to do it...
>
> Thanks and Regards
> Prasanna UM
>

-- 
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/4cb54726-2a86-48e0-94de-808c53efa080%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


build-name-setter plugin: how to get a new build name value

2016-04-19 Thread Alex Domoradov
Hello,

I'm using build-name-setter plugin with the following settings for Build 
name macro template

v${BUILD_LOG_REGEX, regex="(.*)Current build number: 
([0-9]\.[0-9]\.[0-9]+)(.*)", maxMatches=1, showTruncatedLines=false, 
substText="$2", addNewline=false}.b${BUILD_NUMBER}_${GIT_REVISION, length=8}

12:54:17 Evaluated macro: 'v1.2.06.b14_4fd204ef'
12:54:17 Setting build name to 'v1.2.06.b14_4fd204ef'

All works fine and my job name is set to v1.2.06.b14_4fd204ef. But I need 
to get access to this value in a shell script (maybe via variable). Is it 
possible? if it's not - maybe some workaround?

I have tried

echo "BUILD_NUMBER - ${BUILD_NUMBER}"
echo "BUILD_ID - ${BUILD_ID}"
echo "BUILD_DISPLAY_NAME - ${BUILD_DISPLAY_NAME}"
echo "JOB_NAME - ${JOB_NAME}"
echo "BUILD_TAG - ${BUILD_TAG}"

but non of them fit my requirements

-- 
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/da3229d9-ac1e-4926-95df-f04dbb90e575%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Copy artifact plugin: How to get access to an artifact name

2016-04-11 Thread Alex Domoradov

But I have encountered with one annoying behavior. I have specified 2 jobs 
in the Projects to build field and these jobs executes one by one not in 
parallel. 

http://i.imgur.com/owhDpUO.png

Is it possible to run those jobs in parallel without additional plugins? If 
it is not possible, what plugin do I need to use to achieve such behavior?






On Monday, April 11, 2016 at 10:42:34 AM UTC+3, Alex Domoradov wrote:
>
> Yes, currently I'm using exactly such scheme as you've described. But i 
> thought there should be built-in feature to get such information
>
> On Saturday, April 9, 2016 at 8:05:43 PM UTC+3, Victor Martinez wrote:
>>
>> Off the top off my head, you can generate a properties (key=value) file a 
>> as part of the parentstream build and use it as build parameters for those 
>> downstream  jobs
>> 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/bd945120-57e2-4e9c-9a7c-c96f94bef508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Copy artifact plugin: How to get access to an artifact name

2016-04-11 Thread Alex Domoradov
Yes, currently I'm using exactly such scheme as you've described. But i 
thought there should be built-in feature to get such information

On Saturday, April 9, 2016 at 8:05:43 PM UTC+3, Victor Martinez wrote:
>
> Off the top off my head, you can generate a properties (key=value) file a 
> as part of the parentstream build and use it as build parameters for those 
> downstream  jobs
> 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/9e6ea107-170a-4aee-90cb-8281416b0319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Copy artifact plugin: How to get access to an artifact name

2016-04-08 Thread Alex Domoradov
Hello,

I'm using Copy Artifact Plugin v1.37 with Jenkins-1.648 on CentOS-6.7. I've 
configured 1 upstream job and 2 downstreams. The upstream job produces one 
war file which I used in the downstream jobs.

Is it possible in the downstream job to get an artifact name via env 
variable? Something like ${ARTIFACT}. I need the name of artifact to 
specify it in a send build artifacts publish over ssh action.

Thanks in advance

-- 
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/28341cfb-1bc6-4665-baae-218ec2a6490b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0 beta released

2016-03-31 Thread Alex Domoradov
Hello,

I have tried to run jenkins 2.0 with resin but without success. when I'm 
trying to open a main page I get the following error

WEB-INF/web.xml:30: http://xmlns.jcp.org/xml/ns/javaee";>
is an unexpected top-level tag.

28:  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd";
29:  version="3.1"
30:  metadata-complete="true">
31:   Jenkins v2.0-alpha-4
32:   Build management system


At the same time jenkins-1.x.war works fine. Resin implements Servlet 3.0 
but Jenkins require 3.1. If I replace web.xml with 3.0 specification it 
seems to work.

So my question is - Does Jenkins 2.0 really using any of the 3.1 features 
(new classes, methods)?

Thanks in advance

On Friday, March 25, 2016 at 2:18:18 AM UTC+2, Daniel Beck wrote:
>
> Hi everyone, 
>
> We released the Jenkins 2.0 beta earlier today. It includes basically 
> everything we intent to ship in a few weeks as 2.0. A few features/changes 
> didn't quite make it, and will be added in subsequent weekly releases. 
>
> To learn more about this release and download it, visit our shiny new 
> site: 
> https://jenkins.io/2.0/ 
>
> If you're filing issues in JIRA[1], please add the labels '2.0' and 
> '2.0-beta' so we can easily find your report. Thanks! 
>
> Daniel 
>
> 1: https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue 
>
>

-- 
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/d832698d-ac85-4be3-a6b9-33865f469372%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins chooses incorrect node

2016-02-25 Thread Alex Domoradov
Thanks, will bear in mind

On Thursday, February 25, 2016 at 3:19:17 PM UTC+2, Victor Martinez wrote:
>
> I don't know now how that version of Jenkins used to distribute the load 
> and the default node setup. AFAIK, if that jenkins infrastructure is based 
> on one master then those jobs will be always triggered by those 'master 
> slave', otherwise those jobs will require where to run.
>
> Jenkins tries to allocate those jobs to the last node is was executed on, 
> by default, unless that node is busy then will choose another one:
> - 
> http://documentation.cloudbees.com/docs/cje-user-guide/_default_jenkins_behavior.html
>
> You can find useful the below confluence page:
> - https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds 
> <https://www.google.com/url?q=https%3A%2F%2Fwiki.jenkins-ci.org%2Fdisplay%2FJENKINS%2FDistributed%2Bbuilds&sa=D&sntz=1&usg=AFQjCNFun7h8vTaCevrysaU4pCTl5V_mbg>
>
> Cheers
>
> On Thursday, 25 February 2016 12:42:29 UTC, Alex Domoradov wrote:
>>
>> So, every time when I'll create a new job I must specify a node? Have I 
>> correctly understood? 
>>
>> It's a little bit strange, because we have another instance with Jenkins 
>> (ver. 1.565.2) and there all jobs by default executes on MASTER node. If I 
>> need a job will execute on some specific node then I just specify it on job 
>> settings page as you mentioned before.
>>
>> On Thursday, February 25, 2016 at 2:19:53 PM UTC+2, Victor Martinez wrote:
>>>
>>> Hi,
>>>
>>>  You might need to configure your jobs in order to use the 'master' 
>>> label, it's part of the 'Restrict where this project can be run' 
>>> configuration. Although using your master for building and so on it's ideal.
>>>
>>> Cheers
>>>
>>> On Thursday, 25 February 2016 09:30:07 UTC, Alex Domoradov wrote:
>>>>
>>>> Hello,
>>>>
>>>>
>>>> Some time ago Jenkins has started run jobs on slave node (win 7).
>>>>
>>>>
>>>> [EnvInject] - Loading node environment variables.
>>>>
>>>> Installing JDK jdk-8u74-oth-JPR
>>>> Downloading JDK from 
>>>> http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-windows-x64.exe
>>>> Downloading 196405336 bytes
>>>>
>>>> Installing D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74\jdk.exe
>>>>
>>>> [jdk-sun-1.8.74] $ 
>>>> D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74\jdk.exe /s 
>>>> ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress 
>>>> INSTALLDIR=D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74 /L 
>>>> D:\jenkins\tools\hudson.model.JDK\install1182473847874408631log
>>>>
>>>> Building remotely on win7 (WINDOWS) in workspace 
>>>> D:\jenkins\workspace\resin-deploy
>>>>
>>>> Cloning the remote Git repository
>>>> ...
>>>> [EnvInject] - Injecting environment variables from a build step.
>>>> [EnvInject] - Injecting as environment variables the properties content 
>>>> JAVA_HOME=/var/lib/jenkins/tools/hudson.model.JDK/jdk-sun-1.8.74
>>>>
>>>> [EnvInject] - Variables injected successfully.
>>>> FATAL: Cannot find executable from the chosen Ant installation "ant-1.9.6"
>>>> Build step 'Invoke Ant' marked build as failure
>>>> SSH: Current build result is [FAILURE], not going to run.
>>>> Finished: FAILURE
>>>>
>>>>
>>>> The slave node was connected via 
>>>>
>>>>
>>>>
>>>> > java -jar d:\jenkins-slave.jar -jnlpUrl 
>>>> > http://jenkins.example.net:8080/computer/win7/slave-agent.jnlp -secret 
>>>> > {SECRET}
>>>>
>>>>
>>>>  
>>>>
>>>> For example build 10 was built on Master node (linux) and build 11 was 
>>>> built on Slave (windows 7). How can I revert the old behavior and tell 
>>>> Jenkins build all jobs on master node by default ?
>>>>
>>>

-- 
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/f654dcb9-0458-434a-9d2f-13cf52dcbf32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins chooses incorrect node

2016-02-25 Thread Alex Domoradov
So, every time when I'll create a new job I must specify a node? Have I 
correctly understood? 

It's a little bit strange, because we have another instance with Jenkins 
(ver. 1.565.2) and there all jobs by default executes on MASTER node. If I 
need a job will execute on some specific node then I just specify it on job 
settings page as you mentioned before.

On Thursday, February 25, 2016 at 2:19:53 PM UTC+2, Victor Martinez wrote:
>
> Hi,
>
>  You might need to configure your jobs in order to use the 'master' label, 
> it's part of the 'Restrict where this project can be run' configuration. 
> Although using your master for building and so on it's ideal.
>
> Cheers
>
> On Thursday, 25 February 2016 09:30:07 UTC, Alex Domoradov wrote:
>>
>> Hello,
>>
>>
>> Some time ago Jenkins has started run jobs on slave node (win 7).
>>
>>
>> [EnvInject] - Loading node environment variables.
>>
>> Installing JDK jdk-8u74-oth-JPR
>> Downloading JDK from 
>> http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-windows-x64.exe
>> Downloading 196405336 bytes
>>
>> Installing D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74\jdk.exe
>>
>> [jdk-sun-1.8.74] $ D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74\jdk.exe 
>> /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress 
>> INSTALLDIR=D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74 /L 
>> D:\jenkins\tools\hudson.model.JDK\install1182473847874408631log
>>
>> Building remotely on win7 (WINDOWS) in workspace 
>> D:\jenkins\workspace\resin-deploy
>>
>> Cloning the remote Git repository
>> ...
>> [EnvInject] - Injecting environment variables from a build step.
>> [EnvInject] - Injecting as environment variables the properties content 
>> JAVA_HOME=/var/lib/jenkins/tools/hudson.model.JDK/jdk-sun-1.8.74
>>
>> [EnvInject] - Variables injected successfully.
>> FATAL: Cannot find executable from the chosen Ant installation "ant-1.9.6"
>> Build step 'Invoke Ant' marked build as failure
>> SSH: Current build result is [FAILURE], not going to run.
>> Finished: FAILURE
>>
>>
>> The slave node was connected via 
>>
>>
>>
>> > java -jar d:\jenkins-slave.jar -jnlpUrl 
>> > http://jenkins.example.net:8080/computer/win7/slave-agent.jnlp -secret 
>> > {SECRET}
>>
>>
>>  
>>
>> For example build 10 was built on Master node (linux) and build 11 was 
>> built on Slave (windows 7). How can I revert the old behavior and tell 
>> Jenkins build all jobs on master node by default ?
>>
>

-- 
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/f5536b4e-3223-4d0a-aacd-2a2570ea5c43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins chooses incorrect node

2016-02-25 Thread Alex Domoradov


Hello,


Some time ago Jenkins has started run jobs on slave node (win 7).


[EnvInject] - Loading node environment variables.

Installing JDK jdk-8u74-oth-JPR
Downloading JDK from 
http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-windows-x64.exe
Downloading 196405336 bytes

Installing D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74\jdk.exe

[jdk-sun-1.8.74] $ D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74\jdk.exe /s 
ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress 
INSTALLDIR=D:\jenkins\tools\hudson.model.JDK\jdk-sun-1.8.74 /L 
D:\jenkins\tools\hudson.model.JDK\install1182473847874408631log

Building remotely on win7 (WINDOWS) in workspace 
D:\jenkins\workspace\resin-deploy

Cloning the remote Git repository
...
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties content 
JAVA_HOME=/var/lib/jenkins/tools/hudson.model.JDK/jdk-sun-1.8.74

[EnvInject] - Variables injected successfully.
FATAL: Cannot find executable from the chosen Ant installation "ant-1.9.6"
Build step 'Invoke Ant' marked build as failure
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE


The slave node was connected via 



> java -jar d:\jenkins-slave.jar -jnlpUrl 
> http://jenkins.example.net:8080/computer/win7/slave-agent.jnlp -secret 
> {SECRET}


 

For example build 10 was built on Master node (linux) and build 11 was 
built on Slave (windows 7). How can I revert the old behavior and tell 
Jenkins build all jobs on master node by default ?

-- 
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/59c9cda5-424b-4ff6-a05c-d602ad07f515%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: downloads from archives.jenkins-ci.org never finish...

2016-01-23 Thread Alex Domoradov
I do really need exactly jenkins_1.565.2_all.deb (debian 7). Could anyone 
share with me?

-- 
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/d9803790-02a8-4bda-88c4-fc7ca71497d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: downloads from archives.jenkins-ci.org never finish...

2016-01-23 Thread Alex Domoradov
Any updates?

-- 
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/c6e6b2cc-ad1b-48d3-9844-07699c1efeda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Mantis plugin: regexp pattern doesn't work

2015-10-26 Thread Alex Domoradov
Hello,

I'm currently using Jenkins v1.634 and Mantis plugin v0.26. When I try to 
use the following regex pattern

/(.*)(issue|bug|fix)\s?(:|#)?\s?(:|#)?(\d+)(.*)/gi

https://regex101.com/r/cE5mT1/2

I got the following message in the build log - "[MANTIS] No issues have 
been found in the changelog.". Did I miss something?

P.S.
comment message for the commit was - "Fixed issue #2. Some comment"

Thanks in advance

-- 
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/716c7b87-2c62-48be-a96e-7c5d9ea50473%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.