Re: MultiJob retry functionality...I cant get it working

2016-12-20 Thread chris
Hi all,

Thanks for the help!  Just to clarify, the instructions are:

In Manage Jenkins > Configure System:

   1. Somewhere on the server running Jenkins, store a text file with the 
   content from the Jenkins output to parse, for example "Finished: FAILURE"
   2. Under "Multijob Retry Rules"
  1. "Name" is anything you want to name it, you use it in the strategy 
  dropdown below
  2. "Parsing Rules File" is the path to the text file
   

Then on the job itself, under Build > MultiJob Phase > Advanced...:

   1. Check "Enable retry"
   2. Select strategy from the dropdown


Thanks!
Chris

On Wednesday, December 14, 2016 at 6:41:04 AM UTC-8, Vitaly Karasik wrote:
>
> Fernando, I see the same behavior - neither "UNSTABLE" not ".*" rules 
> don't work for unstable build.
> Even, according to the plugin code, it's just Java regex match, i.e. both 
> should work.
>
> Vitaly
>
> On Thursday, May 19, 2016 at 7:04:48 PM UTC+3, Fernando Miguélez wrote:
>>
>>
>> Great answer Aleksander. This feature should definetly be better 
>> documented.
>>
>> In my case I found out that if if your task finishes with "UNSTABLE" 
>> instead of "FAILURE", phase retry configuration has no effect. 
>>
>>
>> El martes, 10 de mayo de 2016, 12:14:33 (UTC+2), Aleksandar Kasabov 
>> escribió:
>>>
>>> 1) Make a parsing rule file, e.g. /var/lib/jenkins/rules/failures.txt 
>>> with content 'Finished: FAILURE'
>>> 2) Register that in Jenkins general config, section "Multijob Retry 
>>> Rules -> Parsing Rules"
>>> 3) Use that rule in the job that you want to be retried, the field is 
>>> "Select strategy" which right below the "Enably retries" in the multiphase 
>>> project settings
>>>
>>> In general, move to the the pipeline plugin, Multijob plugin is quite 
>>> old, not to mention the quality of the java source code it's writen in
>>> Good luck
>>>
>>> On Thursday, January 14, 2016 at 11:25:17 AM UTC+1, Zheng LiSheng wrote:

 My problem is that nothing happens after selecting "Enable retry".

 On Thursday, October 15, 2015 at 9:44:09 PM UTC+8, Kris Massey wrote:
>
> Hey All,
>
> I'm new to the Jenkins MultiJOb plugin and I'm having some troubles 
> using the retry functionality. 
>
> I have a job configured
>
> MultiJob
>  - Phase 1
>   - Job 1
>   - Job 2
>  - Phase 2
>- Job 3
>
>
> Job 2 can have random failures (due to external client system), I've 
> noticed that the MultiJob -> Phase -> Job configuration offers  a 'Enable 
> retry' option, so I was hoping this would then attempt a retry and kick 
> off 
> phase 2 if the job passed the second time. 
>
> My issue is the retry never seems to happen, below is some output on 
> the console of the MultiJob
>
> [EnvInject] - Loading node environment variables.
> Building in workspace /var/lib/jenkins/jobs/build-process/workspace
> >> Job status: [Job2] the 'build only if scm changes' feature is 
> disabled.
> Starting build job p2 .
> >> Job status: [Job1] the 'build only if scm changes' feature is 
> disabled.
> Starting build job p1 .
> Finished Build : #21 
>  of Job : Job2 
> with status : FAILURE 
> *Scanning 
> failed job console output using parsing rule file .
> Parser rules file not found.*
> Failed the build, the failure doesn't match the rules.
> Finished Build : #23 
>  of Job : J 
> ob1 with status : 
> SUCCESS 
> Build step 'MultiJob Phase' marked build as failure
> Notifying upstream projects of job completion
> Warning: you have no plugins providing access control for builds, so 
> falling back to legacy behavior of permitting any downstream builds to be 
> triggered
> Finished: FAILURE
>
>
> I've highlighted the lines I believe may be causing the issue, however 
> I've got no idea how to solve it (hopefully its missing config as apposed 
> to a bug in the MultiJob plugin)
>
>
> Any help greatly 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/bf356ff9-111a-49de-a249-f7798b2f0d5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Active Choice Plug In, new user to Jenkins/Active Choice

2016-12-20 Thread john . hochbaum
I am using the Active Choice PlugIn and looking to find a way to use 
Scriptler to grab the reactive parameter from the previous drop down list. 
 Just looking for a sample to follow, and not having any luck finding it.

-- 
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/74d9a1e7-c078-4995-9073-6020e9113dca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Git Plugin doesn't pull from repo .git url

2016-12-20 Thread Indra Gunawan (ingunawa)
Have you added the SSH public key of the user used for cloning the github repo 
on Jenkins node/agent using git plugin?
Have you created the Jenkins Credential using SSH private key for the user on 
Jenkins?  Have you set the git plugin’s Credential drop-down item to this new 
credential that you added to Jenkins?

From:  on behalf of "jbro...@snapapp.com" 

Reply-To: "jenkinsci-users@googlegroups.com" 
Date: Tuesday, December 20, 2016 at 12:52 PM
To: Jenkins Users 
Subject: Git Plugin doesn't pull from repo .git url

Hi all,

I'm running an issue when I try to use the repository URL (the one used for 
`git clone`) of a private project in the Repository URL field:

> git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

 > git config remote.origin.url g...@github.com:foo/bar.git # timeout=10

Fetching upstream changes from g...@github.com:foo/bar.git

 > git --version # timeout=10

using GIT_ASKPASS to set credentials

 > git fetch --tags --progress g...@github.com:foo/bar.git 
 > +refs/heads/*:refs/remotes/origin/*

ERROR: Error fetching remote repo 'origin'

hudson.plugins.git.GitException:
 Failed to fetch from g...@github.com:foo/bar.git

at 
hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803)

at 
hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063)

at 
hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094)

at 
hudson.scm.SCM.checkout(SCM.java:495)

at 
hudson.model.AbstractProject.checkout(AbstractProject.java:1278)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)

at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)

at 
hudson.model.Run.execute(Run.java:1720)

at 
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

at 
hudson.model.ResourceController.execute(ResourceController.java:98)

at 
hudson.model.Executor.run(Executor.java:404)

Caused by: 
hudson.plugins.git.GitException:
 Command "git fetch --tags --progress g...@github.com:foo/bar.git 
+refs/heads/*:refs/remotes/origin/*" returned status code 128:

stdout:

stderr: Permission denied (publickey).

fatal: Could not read from remote repository.



If I use the project URL- that is, https://github.com/foo/bar- it's able to see 
it just fine. Is this a documentation issue, or am I supposed to be using the 
*.git repo? If so, what am I doing wrong above? I know I've got my credentials 
set up correctly.



Versions:

Jenkins ver. 2.19.4


Git Plugin: 3.0.1



Thanks!

Jack
--
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/c56bf7af-f20d-4e41-9c40-2b950ea6fafa%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-us

Git Plugin doesn't pull from repo .git url

2016-12-20 Thread jbrooks
Hi all,

I'm running an issue when I try to use the repository URL (the one used for 
`git clone`) of a private project in the Repository URL field:

> git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository
 > git config remote.origin.url g...@github.com:foo/bar.git # timeout=10
Fetching upstream changes from g...@github.com:foo/bar.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git fetch --tags --progress g...@github.com:foo/bar.git 
 > +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'hudson.plugins.git.GitException 
:
 Failed to fetch from g...@github.com:foo/bar.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803) 

at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063) 

at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094) 

at hudson.scm.SCM.checkout(SCM.java:495) 

at hudson.model.AbstractProject.checkout(AbstractProject.java:1278) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
 

at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 

at hudson.model.Run.execute(Run.java:1720) 

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 

at hudson.model.ResourceController.execute(ResourceController.java:98) 

at hudson.model.Executor.run(Executor.java:404) 

Caused by: hudson.plugins.git.GitException 
:
 Command "git fetch --tags --progress g...@github.com:foo/bar.git 
+refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: Permission denied (publickey).
fatal: Could not read from remote repository.


If I use the project URL- that is, https://github.com/foo/bar- it's able to see 
it just fine. Is this a documentation issue, or am I supposed to be using the 
*.git repo? If so, what am I doing wrong above? I know I've got my credentials 
set up correctly.


Versions:

Jenkins ver. 2.19.4

Git Plugin: 3.0.1


Thanks!

Jack

-- 
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/c56bf7af-f20d-4e41-9c40-2b950ea6fafa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins with Oracle

2016-12-20 Thread Slide
In all fairness, the OP was asked to post on this list instead of the dev
list.

a) Since this is a Jenkins user list, most people will probably answer
"yes". I've seen Jenkins do a lot, sometimes you have to finagle it a
little, but it's a great tool and has a lot of flexibility.
b) I don't know of such a plugin, you can search the wiki plugin pages at
[1] with specific keywords though
c) Again, it's best to search the wiki and see what is out there. One such
search came up with [2]

1 - https://wiki.jenkinsci.org
2 - https://wiki.jenkins-ci.org/display/JENKINS/MyST+Plugin

On Tue, Dec 20, 2016 at 1:02 PM Indra Gunawan (ingunawa) 
wrote:

> To OP, please do you your research first.   Nobody is going to give you
> the answer.
>
> This is a Jenkins user mailing list. At best, the mailing list
> participants will be willing to answer you question if you tell them you
> have done your part.
>
> Do you expect people to tell you everything?
>
>
>
>
>
> *From: * on behalf of Rajesh Khatri <
> rkkha...@gmail.com>
> *Reply-To: *"jenkinsci-users@googlegroups.com" <
> jenkinsci-users@googlegroups.com>
> *Date: *Tuesday, December 20, 2016 at 10:23 AM
> *To: *Jenkins Users 
> *Subject: *Jenkins with Oracle
>
>
>
> Hello,
>
> We are in process of identifying a custom Build/Deploy solution and need
> some inputs. We are mainly a Oracle E-business Suite shop with few custom
> Mobile and other in-house applications.
>
> Wanted some help on below points :-
> a) Will Jenkins be  a good fit for our organization.
> b) Is there a Plugin for deploying E-business Suite Components ( Oracle
> Forms, Oracle Reports, PLSQL, OAF ).
> c) IS there any plug in for deploying Oracle Fusion Middleware components.
>
> Any help will be really appreciated. Please forward me any reference or
> example if you can.
>
> Thanks a lot.
>
> --
> 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/06d061bc-aa5e-4f9c-b0ec-20d377dcae9c%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/8C322645-3C7F-4C38-A3C5-46B55719F8EA%40cisco.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/CAPiUgVfTAANPd2QvkQDqbJpL9hxi-DPPLPzutZfbcOZDdJf%2BUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: pythonpath in declarative pipepline built on docker slave

2016-12-20 Thread Eric Pyle
This is really a Python issue, not Jenkins. But here's how I do it. 
PYTHONPATH environment variable is automatically appended to sys.path in 
Python. So in your Python script, just directly add the relevant 
directory (can be a relative or absolute path):


import sys
sys.path.append('path/to/my_dir')

Eric

On 12/20/2016 3:19 PM, Omeka wrote:

hello,

i am looking for a way to set PYTHONPATH to the workspace / current 
directory of a build that executes unit test with pytest  and avoid 
the following

error messages:

[Tests] __ ERROR collecting tests/unit/drive/test_config.py 
___
[Tests] tests/unit/drive/test_config.py:3: in 
[Tests] from drive import config
[Tests] E   ImportError: No module named 'drive'
[Tests] __ ERROR collecting tests/unit/drive/test_helpers.py 
__
[Tests] tests/unit/drive/test_helpers.py:3: in 
[Tests] from drive import helpers
[Tests] E   ImportError: No module named 'drive'
[Tests] __ ERROR collecting tests/unit/drive/test_service.py 
__
[Tests] tests/unit/drive/test_service.py:5: in 
[Tests] from drive import service
[Tests] E   ImportError: No module named 'drive'
[Tests] ___ ERROR collecting tests/unit/drive/test_transformers.py 

[Tests] tests/unit/drive/test_transformers.py:5: in 
[Tests] from drive import transformers
[Tests] E   ImportError: No module named 'drive'
[Tests] === 4 error in 0.25 seconds 


the build is excuted in docker container based on the official python 
3.5 image


I have to admit i have been playing with python for about just two 
weeks so i might be missing something.


Best regards
Omeka
--
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/c3a15a5c-011c-4986-b1d3-cfc669a87804%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
*Eric Pyle
*
Release Engineer
Lebanon
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@cd-adapco.com 
http://www.cd-adapco.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/463fd169-52d3-0f52-19c5-954028d03702%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


pythonpath in declarative pipepline built on docker slave

2016-12-20 Thread Omeka
hello,

i am looking for a way to set PYTHONPATH to the workspace / current 
directory of a build that executes unit test with pytest  and avoid the 
following 
error messages:

[Tests] __ ERROR collecting tests/unit/drive/test_config.py 
___
[Tests] tests/unit/drive/test_config.py:3: in 
[Tests] from drive import config
[Tests] E   ImportError: No module named 'drive'
[Tests] __ ERROR collecting tests/unit/drive/test_helpers.py 
__
[Tests] tests/unit/drive/test_helpers.py:3: in 
[Tests] from drive import helpers
[Tests] E   ImportError: No module named 'drive'
[Tests] __ ERROR collecting tests/unit/drive/test_service.py 
__
[Tests] tests/unit/drive/test_service.py:5: in 
[Tests] from drive import service
[Tests] E   ImportError: No module named 'drive'
[Tests] ___ ERROR collecting tests/unit/drive/test_transformers.py 

[Tests] tests/unit/drive/test_transformers.py:5: in 
[Tests] from drive import transformers
[Tests] E   ImportError: No module named 'drive'
[Tests] === 4 error in 0.25 seconds 



the build is excuted in docker container based on the official python 3.5 
image

I have to admit i have been playing with python for about just two weeks so 
i might be missing something.

Best regards
Omeka

-- 
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/c3a15a5c-011c-4986-b1d3-cfc669a87804%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Using FilePath to access workspace on slave in Jenkins pipeline

2016-12-20 Thread Harsha Adiga
I need to check for the existence of a certain .exe file in my workspace as 
part of my pipeline build job. I tried to use the below Groovy script from 
my Jenkinsfile to do the same. But I think the File class by default tries 
to look for the workspace directory on jenkins master and fails.

@com.cloudbees.groovy.cps.NonCPS
def checkJacoco(isJacocoEnabled) {

new File(pwd()).eachFileRecurse(FILES) { it ->
if (it.name == 'jacoco.exec' || it.name == 'Jacoco.exec') 
isJacocoEnabled = true
}
}

How to access the file system on slave using Groovy from inside the 
Jenkinsfile? 

I also tried the below code. But I am getting No such property: build for 
class: groovy.lang.Binding error.  I also tried to use the manager object 
instead. But get the same error.

@com.cloudbees.groovy.cps.NonCPS
def checkJacoco(isJacocoEnabled) {

channel = build.workspace.channel 
rootDirRemote = new FilePath(channel, pwd()) 
println "rootDirRemote::$rootDirRemote" 
rootDirRemote.eachFileRecurse(FILES) { it -> 
if (it.name == 'jacoco.exec' || it.name == 'Jacoco.exec') { 
println "Jacoco Exists:: ${it.path}" 
isJacocoEnabled = true 
} 
}

-- 
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/2b1f6b39-a429-4ea4-ab81-d532561e7065%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Using FilePath to access workspace on slave in Jenkins pipeline

2016-12-20 Thread Harsha Adiga
I need to check for the existence of a certain .exe file in my workspace as 
part of my pipeline build job. I tried to use the below Groovy script from 
my Jenkinsfile to do the same. But I think the File class by default tries 
to look for the workspace directory on jenkins master and fails.

@com.cloudbees.groovy.cps.NonCPS
def checkJacoco(isJacocoEnabled) {

new File(pwd()).eachFileRecurse(FILES) { it ->
if (it.name == 'jacoco.exec' || it.name == 'Jacoco.exec') 
isJacocoEnabled = true
}
}

How to access the file system on slave using Groovy from inside the 
Jenkinsfile? I also tried the below code. But I am getting No such 
property: build for class: groovy.lang.Binding error.  I also tried to use 
the manager object instead. But get the same error.

@com.cloudbees.groovy.cps.NonCPS
def checkJacoco(isJacocoEnabled) {

channel = build.workspace.channel 
 rootDirRemote = new FilePath(channel, pwd()) println 
"rootDirRemote::$rootDirRemote" rootDirRemote.eachFileRecurse(FILES) { it 
-> if (it.name == 'jacoco.exec' || it.name == 'Jacoco.exec') { println 
"Jacoco Exists:: ${it.path}" isJacocoEnabled = true } }
} 

-- 
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/4950c029-7ef6-4db4-b764-f62feb2394ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins plugin development issues..

2016-12-20 Thread Indra Gunawan (ingunawa)
This is not the place to ask this question.  Please go to #jenkins irc channel

From:  on behalf of Ankush Purwar 

Reply-To: "jenkinsci-users@googlegroups.com" 
Date: Tuesday, December 20, 2016 at 7:41 AM
To: "jenkinsci-users@googlegroups.com" 
Subject: Jenkins plugin development issues..

Hi,

I am implementing a Jenkins plugin as “post build action”. I want to do the 
following operation.

Q1.  I have defined a field of type “repeatable” in config.jelly and this field 
further have two values say value1 and value2.
How can I ensure that all value1’s are unique across whole repeatable section ?

Q2.  I have overridden the configure method as follows
@Extension
public static class  extends
BuildStepDescriptor {

@Override
public boolean configure(StaplerRequest req, JSONObject 
json) throws FormException {
System.out.println(" Configure called");
save();
return true;
}
But this method has never called while clicking on save/Apply button. Why ?

Q3.  How can I get field of type repeatable (Where each repeatable have 3 text 
boxes) and use it in other repeatable field using config.jelly ?

Q4. How to make use of instance variable ? It doesn’t work for the first time 
when we select the plugin for the first time. Seems data will not reach on 
server using DataBoundConstructor until user will hit the save button. Only 
thing that we could do simple field validation where simple string field data 
is passed.

Can you please provide some pointers/help to achieve the above things ?


--
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/SG2PR06MB172572708633742E67ADBDBAE4900%40SG2PR06MB1725.apcprd06.prod.outlook.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/AFB07B3E-021D-466F-9ED6-3A7A27A68DE6%40cisco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins with Oracle

2016-12-20 Thread Indra Gunawan (ingunawa)
To OP, please do you your research first.   Nobody is going to give you the 
answer.
This is a Jenkins user mailing list. At best, the mailing list participants 
will be willing to answer you question if you tell them you have done your part.
Do you expect people to tell you everything?


From:  on behalf of Rajesh Khatri 

Reply-To: "jenkinsci-users@googlegroups.com" 
Date: Tuesday, December 20, 2016 at 10:23 AM
To: Jenkins Users 
Subject: Jenkins with Oracle

Hello,

We are in process of identifying a custom Build/Deploy solution and need some 
inputs. We are mainly a Oracle E-business Suite shop with few custom Mobile and 
other in-house applications.

Wanted some help on below points :-
a) Will Jenkins be  a good fit for our organization.
b) Is there a Plugin for deploying E-business Suite Components ( Oracle Forms, 
Oracle Reports, PLSQL, OAF ).
c) IS there any plug in for deploying Oracle Fusion Middleware components.

Any help will be really appreciated. Please forward me any reference or example 
if you can.

Thanks a lot.
--
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/06d061bc-aa5e-4f9c-b0ec-20d377dcae9c%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/8C322645-3C7F-4C38-A3C5-46B55719F8EA%40cisco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bitbucket HTTPS git clone failed via the pipeline script (Invalid username or password)

2016-12-20 Thread ez pub
I know that if I add the crdentialsId, it will work, like:
fileLoader.fromGit('script_to_call', 'https://bitbucket.org/myproje
ct/script-repo.git', 'master', x-x-xxx)
But I just don't want it in my source code on bitbucket, and there is no
parent job.

I also tried to create the Global Environment Variable in Jenkins, but how
can I pass it to fileLoader.fromGit()?

On Mon, Dec 19, 2016 at 2:50 PM, Mark Waite 
wrote:

> You'll somehow need to pass the credentialsId to the git (or checkout)
> task.  One way might be to assign the values extracted from the file you're
> reading to a groovy string, then pass the expansion of that string (
> "${repository_url}" ) to the git command (or the checkout command) along
> with the credentialsId from the parent Jenkins job.
>
> Mark Waite
>
> On Mon, Dec 19, 2016 at 12:34 PM  wrote:
>
>> Firstof, my company won't allow SSH connection to the bitbucket.org site
>> and any other. So I have to use HTTPS for checkout scm in a multibranch
>> pipeline project. It works perfect when the main repo is cloned by HTTPS
>> and by using the bitbucket.org credential. But my main repo has a
>> Jenkinsfile that will checkout another repo under the same project which
>> contains a bunch of other groovy scripts. Then it threw out an error
>> message and "git clone" will just fail. (If I change it to use SSH, it will
>> work.)
>>
>> The error message is:
>> "ERROR: Error cloning remote repo 'origin'
>> hudson.plugins.git.GitException: Command "git fetch --tags --progress
>> https://bitbucket.org/myproject/scripts-repo.git
>> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
>> stdout:
>> stderr: remote: Invalid username or password. If you log in via a third
>> party service you must ensure you have an account password set in your
>> account profile.
>>
>> My Jenkinsfile contains the following, and will check out the script-repo
>> by HTTPS(As said SSH will work here):
>> fileLoader.fromGit('script_to_call', 'https://bitbucket.org/
>> myproject/script-repo.git', 'master')
>>
>> So how can I enable "using GIT_ASKPASS to set credentials" in this
>> Jenkinsfile so that it will use the same bitbucket credential that was
>> being used for the main repo check out?
>>
>> thanks for anyone's help.
>>
>>
>>
>> Here is the full logs when building:
>> Started by user J
>>  > git rev-parse --is-inside-work-tree # timeout=10
>> Fetching changes from the remote Git repository
>>  > git config remote.origin.url https://bitbucket.org/
>> myproject/mainrepo.git # timeout=10
>> Fetching upstream changes from https://bitbucket.org/
>> myproject/mainrepo.git.git
>>  > git --version # timeout=10
>> using GIT_ASKPASS to set credentials bitbucket cred within pipeline domain
>>  > git fetch --tags --progress https://bitbucket.org/
>> myproject/mainrepo.git +refs/heads/master
>> Checking out Revision 37e755bd6e51b66450ee39de9ad70ab6a8ba950c (master)
>>  > git config core.sparsecheckout # timeout=10
>>  > git checkout -f 37e755bd6e51b66450ee39de9ad70ab6a8ba950c
>>  > git rev-list 37e755bd6e51b66450ee39de9ad70ab6a8ba950c # timeout=10
>> [Bitbucket] Notifying commit build result
>> [Pipeline] node
>> Running on master in /var/lib/jenkins/workspace/h-
>> pipeline-example_master-QWL4DG3IFZJ6ZBQ2RI2QCTE4TJEXJ3
>> XEKPIAKUG2LIUSXZOX2CVA
>> [Pipeline] {
>> [Pipeline] dir
>> Running in /var/lib/jenkins/workspace/h-pipeline-example_master-
>> QWL4DG3IFZJ6Q2RI2QCTE4TJEXJ3XEKPIAKUG2LIUSXZOX2CVA/libLoader
>> [Pipeline] {
>> [Pipeline] deleteDir
>> [Pipeline] echo
>> Checking out https://bitbucket.org/myproject/script-repo.git,
>> branch=master
>> [Pipeline] checkout
>> Cloning the remote Git repository
>> Cloning repository https://bitbucket.org/myproject/script-repo.git
>>  > git init /var/lib/jenkins/workspace/h-pipeline-example_master-
>> QWL4DG3IFZJ6ZBQ2RI2QCTE4TJEXJKPIAKUG2LIUSXZOX2CVA/libLoader # timeout=10
>> Fetching upstream changes from https://bitbucket.org/
>> myproject/script-repo.git
>>  > git --version # timeout=10
>>  > git fetch --tags --progress https://bitbucket.org/
>> myproject/script-repo.git +refs/heads/*:refs/remotes/origin/*
>> ERROR: Error cloning remote repo 'origin'
>> hudson.plugins.git.GitException: Command "git fetch --tags --progress
>> https://bitbucket.org/myproject/script-repo.git
>> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
>> stdout:
>> stderr: remote: Invalid username or password. If you log in via a third
>> party service you must ensure you have an account password set in your
>> account profile.
>> fatal: Authentication failed for 'https://bitbucket.org/
>> myproject/script-repo.git/'
>>
>> --
>> 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/e055d665-c918-40f

Jenkins with Oracle

2016-12-20 Thread Rajesh Khatri
Hello, 

We are in process of identifying a custom Build/Deploy solution and need 
some inputs. We are mainly a Oracle E-business Suite shop with few custom 
Mobile and other in-house applications. 

Wanted some help on below points :- 
a) Will Jenkins be  a good fit for our organization. 
b) Is there a Plugin for deploying E-business Suite Components ( Oracle 
Forms, Oracle Reports, PLSQL, OAF ). 
c) IS there any plug in for deploying Oracle Fusion Middleware components. 

Any help will be really appreciated. Please forward me any reference or 
example if you can. 

Thanks a lot. 

-- 
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/06d061bc-aa5e-4f9c-b0ec-20d377dcae9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


For multi-branch pipeline, deleting branch from github project will not result in deleting of same branch project from jenkins.

2016-12-20 Thread Trever
I believe it may depend on your build history retention policy. If your policy 
is to keep builds for 10 days, the build will remain for 10 days. I've found 
that changing the retention policy will allow it to be removed sooner. 

-- 
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/b8925449-a555-4ccd-b9eb-26debc967dde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error while updating Jenkins job config using Rest API

2016-12-20 Thread Victor Martinez
Have you tried with the command line?
- 
https://support.cloudbees.com/hc/en-us/articles/218353308-How-to-update-job-config-files-using-the-REST-API-and-cURL

Cheers

On Tuesday, 20 December 2016 12:39:20 UTC, Kruti Vyas wrote:
>
> I am trying to change the configuration of a job using Jenkins' rest api 
> using my java code but my code is not able to connect to jenkins url. My 
> code is showing 403 http response while connecting. Please suggest me the 
> changes so that I can update my job without restarting the jenkins. I am 
> using jenkins 2.19.4 version.
>
> try
> {
> String fileDir = "D:\\"; // upload directory
>   String fileName = "config.xml";
>   URL url = new URL("http://myjenkins/job/test/config.xml 
> ");
>  // Jenkins URL localhost:8080, job named 'test'
>
>   String user = "username"; // username
>   String pass = "password"; // password or API token
>   String authStr = user +":"+  pass;
>   String encoding = 
> DatatypeConverter.printBase64Binary(authStr.getBytes("utf-8"));
>
>   HttpURLConnection connection = (HttpURLConnection) 
> url.openConnection();
>
>   connection.setReadTimeout(1);
>   connection.setConnectTimeout(15000);
>   connection.setRequestMethod("POST");
>   connection.setUseCaches(false);
>   connection.setDoInput(true);
>   connection.setDoOutput(true);
>   connection.setRequestProperty  ("Authorization", "Basic " + 
> encoding);
>
>   try
>   {
>
>   String filePath = "D:\\config.xml";
>   FileInputStream inputStream = new FileInputStream(new 
> File(filePath));
>   FileReader fr = new FileReader(new File(filePath));
>   BufferedReader br = new BufferedReader(fr);
>
> String sCurrentLine;
> System.out.println(sCurrentLine = br.readLine());
>   OutputStream os = connection.getOutputStream();
>
> BufferedWriter writer = new BufferedWriter(
> new OutputStreamWriter(os, "UTF-8"));
> while ((sCurrentLine = br.readLine()) != null) {
> //System.out.println("not going inside");
> writer.write(sCurrentLine);
> System.out.println(sCurrentLine);
> }
> writer.flush();
> writer.close();
> os.close();
> int responseCode=connection.getResponseCode();
> System.out.println(responseCode);
>   }
>   catch(Exception e)
>   {
>   e.printStackTrace();
>   }
>
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
>
>
>
>

-- 
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/924e1531-c783-46d2-9f17-723c51d74a03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google Play Android Publisher Plugin

2016-12-20 Thread Daniel Beck

> On 20.12.2016, at 16:51, Richard Ginga  wrote:
> 
> and the answer is: we already have it installed ! (I am new here, forgive the 
> stupidity)

Yeah, I wanted to get a nicer plugin manager that would show everything in a 
single list, but e.g. differently colored and filterable for Jenkins 2.0, but 
that never materialized :-(

-- 
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/5BF5F2E5-E992-4E4E-A2D3-800C63522447%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins plugin development issues..

2016-12-20 Thread Daniel Beck

> On 20.12.2016, at 16:41, Ankush Purwar  wrote:
> 
> I am implementing a Jenkins plugin as “post build action”. 

This question is best asked on the jenkinsci-dev mailing list as it concerns 
Jenkins plugin development.

-- 
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/F8A60E00-C977-46A8-9072-5AC44A975869%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Google Play Android Publisher Plugin

2016-12-20 Thread Richard Ginga
and the answer is: we already have it installed ! (I am new here, forgive
the stupidity)

On Tue, Dec 20, 2016 at 10:43 AM, Richard Ginga 
wrote:

> nope, we are running 2.7.4
>
> On Tue, Dec 20, 2016 at 10:31 AM, Daniel Beck  wrote:
>
>>
>> > On 20.12.2016, at 15:43, rgi...@disruptorbeam.com wrote:
>> >
>> > I see this plugin in the Jenkins Wiki but not through the plugin
>> manager. how can I get this and install it?
>>
>> It requires at least Jenkins 1.554 (for 1.0), could this be the problem?
>>
>> --
>> 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/03616546-E2D8-4F03-82F9-041AED55A412%40beckweb.net.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Dick Ginga
> Build Engineer
> rgi...@disruptorbeam.com
>
>


-- 
Dick Ginga
Build Engineer
rgi...@disruptorbeam.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/CAL3PpaUg88VTf_iV1YRCCh-H%3D_VD7%2BSYMY4-AC4UdWW4i%2ByAvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline hanging with @NonCPS method returning Serializable

2016-12-20 Thread Torsten Reinhard
Hi, 

I´ve created a simple Pipeline using a class (SSHParams) from my shared 
library: 

public class SSHParams implements Serializable {
String unixuser
String dir
String hostname

/**
 * ctor.
 * 
 * @param unixUser
 * @param hostname
 * @param dir
 */
public SSHParams( String unixUser, hostname, dir ) {
setUnixuser(unixUser)
setHostname(hostname)
setDir(dir)
}
...
}


import com.mycompany.SSHParams
import com.cloudbees.groovy.cps.NonCPS

@NonCPS
def sampleOutput() {
SSHParams params = new SSHParams("user","hostname", "dir")

return params
}

stage "1st stage"
println sampleOutput().toString()

This pipeline starts - and is hanging without any output:

[Pipeline] stage (1st stage)
Using the ‘stage’ step without a block argument is deprecated
Entering stage 1st stage
Proceeding
Aborted by . 
Click here to forcibly terminate running steps 

Terminating stage (1st stage)
Click here to forcibly kill entire build 

Hard kill!
Finished: ABORTED



What´s going wrong here ?

Thanx for any hints, 

Torsten

-- 
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/3e9f4420-0adf-4522-b72b-258bf1b15f2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google Play Android Publisher Plugin

2016-12-20 Thread Richard Ginga
nope, we are running 2.7.4

On Tue, Dec 20, 2016 at 10:31 AM, Daniel Beck  wrote:

>
> > On 20.12.2016, at 15:43, rgi...@disruptorbeam.com wrote:
> >
> > I see this plugin in the Jenkins Wiki but not through the plugin
> manager. how can I get this and install it?
>
> It requires at least Jenkins 1.554 (for 1.0), could this be the problem?
>
> --
> 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/03616546-E2D8-4F03-82F9-041AED55A412%40beckweb.net.
> 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 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/CAL3PpaXY9S49oVOwoy3B2_kcjrMeeUFswJt1E195OB8BPs%3D4oA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins plugin development issues..

2016-12-20 Thread Ankush Purwar
Hi,

I am implementing a Jenkins plugin as "post build action". I want to do the 
following operation.

Q1.  I have defined a field of type "repeatable" in config.jelly and this field 
further have two values say value1 and value2.
How can I ensure that all value1's are unique across whole repeatable section ?

Q2.  I have overridden the configure method as follows
@Extension
public static class  extends
BuildStepDescriptor {

@Override
public boolean configure(StaplerRequest req, JSONObject 
json) throws FormException {
System.out.println(" Configure called");
save();
return true;
}
But this method has never called while clicking on save/Apply button. Why ?

Q3.  How can I get field of type repeatable (Where each repeatable have 3 text 
boxes) and use it in other repeatable field using config.jelly ?

Q4. How to make use of instance variable ? It doesn't work for the first time 
when we select the plugin for the first time. Seems data will not reach on 
server using DataBoundConstructor until user will hit the save button. Only 
thing that we could do simple field validation where simple string field data 
is passed.

Can you please provide some pointers/help to achieve the above things ?


-- 
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/SG2PR06MB172572708633742E67ADBDBAE4900%40SG2PR06MB1725.apcprd06.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: Git pull from GitHub private repository

2016-12-20 Thread hanstra
I figured out that the user root was doing the work of the deployment. Set 
up keys accordingly. 

Looks like I can deploy as expected after that.

Tom

On Tuesday, December 20, 2016 at 10:12:44 AM UTC-5, han...@nd.edu wrote:
>
> Looks like switching to the jenkins user ssh-keys credentials helps move 
> this forward. The errors I was getting first were directly in the 
> configuration of Jenkins. Telling Jenkins to use the ssh-key for the 
> Jenkins user gets me past that.
>
> But on deploy, I'm still getting github errors.  When I run this command 
> interactively:
>
> SCM_BRANCH="master" /opt/ruby/current/bin/cap -v -f "./Capfile" 
> pre_production deploy
>
> The deploy works properly. But when Jenkins tries to run the same basic 
> command, the console gives this error:
>
> SCM_BRANCH=master
> + /opt/ruby/current/bin/cap -v -f /opt/jenkins/jobs/fw-test/workspace/Capfile 
> pre_production deploy
>  ** transaction: start
> /opt/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:107:
>  warning: Insecure world writable dir 
> /opt/jenkins/tools/hudson.model.JDK/java_7_u55 in PATH, mode 040777
> Permission denied (publickey).
> fatal: The remote end hung up unexpectedly
> *** [deploy:update_code] rolling back
> Command git ls-remote g...@github.com:ndlib/fw-test.git master returned 
> status code pid 114306 exit 128
> Build step 'Execute shell' marked build as failure
>
>
> Any thoughts on what it does not like? 
>
>
> Thanks,
>
> Tom
>
>
> On Monday, December 19, 2016 at 7:22:06 PM UTC-5, Mark Waite wrote:
>
>> Did you define a credential for the access to that repository (using the 
>> "Add" button on the job UI, or using the credentials section in "Manage 
>> Jenkins")?
>>
>> Is the credential you defined a private key (not a username / password) 
>> credential?  If not, it needs to be.
>>
>> Did you associate that credential with that repository URL in the job 
>> definition?
>>
>> Is the public key for that private key registered with github as an 
>> allowed public key for that repository?
>>
>> Are you using any entries in ~/.ssh/config to use unexpected or different 
>> private keys in your access to the github repository?
>>
>> Mark Waite
>>
>> On Mon, Dec 19, 2016 at 2:10 PM  wrote:
>>
>>> I'm attempting to pull from a private repository in GitHub. I have keys 
>>> set up so that the jenkins user can pull from the repository but am having 
>>> trouble with the Git plugin. When I set the repository URL to:
>>>
>>> g...@github.com/[myorg]/[myrepo] 
>>> 
>>>
>>> I receive the error message:
>>>
>>> Failed to connect to repository : Command "git ls-remote -h 
>>> g...@github.com:[myorg]/[myrepo] HEAD" returned status code 128:
>>> stdout:
>>> stderr: Permission denied (publickey).
>>> fatal: The remote end hung up unexpectedly
>>>
>>> However, from the command line, this works:
>>>
>>> git ls-remote  g...@github.com:[myorg]/[myrepo] HEAD
>>> d028a33d1bc3bc4cec49ae53f80f3eb58f09f13d HEAD
>>>
>>> and this also gives output:
>>>
>>> git ls-remote -h g...@github.com:[myorg/[myrepo]
>>> d028a33d1423bc4cec49ae53f80f3eb5bc09f13d refs/heads/master
>>>
>>> It is the combination of using both -h and HEAD that gives bad output.
>>>
>>> Do I have something wrong with the repository?  Or something wrong with 
>>> the plugin?  Or what am I missing here?
>>>
>>> Thanks,
>>> Tom Hanstra
>>> han...@nd.edu
>>>
>>>
>>>
>>>
>>> -- 
>>> 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/f1fb8b49-ed9f-4f19-ae6e-dc3960b5a212%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/c9f5bec6-3a54-4687-b564-632787ac410c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running a local Jenkins plugin repository?

2016-12-20 Thread Daniel Beck

> On 20.12.2016, at 15:18, Andrew Ducker  wrote:
> 
> … security people aren't willing to open up arbitrary locations …
> 
> … an internal Jenkins Plugin repository which could be given persmission to 
> automatically pull the latest versions …

This makes no sense at all to me. What am I missing here? There's only a 
handful of mirrors, and the full list is at 
http://mirrors.jenkins-ci.org/status.html

You could try running https://github.com/yandex-qatools/juseppe for hosting 
your own update site. Couple with a script that scrapes 
http://updates.jenkins-ci.org/latest/ should do it.

-- 
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/95C54F62-3EB9-45D4-AE57-B57112BE9335%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Google Play Android Publisher Plugin

2016-12-20 Thread Daniel Beck

> On 20.12.2016, at 15:43, rgi...@disruptorbeam.com wrote:
> 
> I see this plugin in the Jenkins Wiki but not through the plugin manager. how 
> can I get this and install it?

It requires at least Jenkins 1.554 (for 1.0), could this be the problem?

-- 
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/03616546-E2D8-4F03-82F9-041AED55A412%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Is there any way of hosting an internal Jenkins plugins repository?

2016-12-20 Thread Andrew Ducker
Jenkins plugins are downloaded from a wide variety of sources (as the 
Jenkins downloads site actually forward you on to a mirror).

Our security people aren't willing to open up arbitrary locations to allow 
Jenkins to pull in updated plugins, and managing them by hand is a massive 
pain (particularly when there are dependencies).

The easiest thing to do, for us, would be to have an internal Jenkins 
Plugin repository which could be given persmission to automatically pull 
the latest versions and made them available inside our firewall - 
effectively running a private mirror.

Is this something that is currently possible?

Thanks,

Andy

-- 
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/6f2b292e-8c15-44b0-9dc2-d8e21d154587%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automatic JDK installation not working on AIX systems

2016-12-20 Thread Daniel Beck

> On 20.12.2016, at 15:11, sunnymarc1...@gmail.com wrote:
> 
> Is it possible to get AIX systems supported in the near future?

Probably not, unless you do this yourself.

FWIW you could choose to install the JDK from a zip/tar file that Jenkins 
downloads for that machine (limit the install to specific nodes using the label 
expression). While less convenient (it requires preparation by you), this 
should work on all platforms.

-- 
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/AA3BEBED-10BA-4F93-9D71-46A748C888C1%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Build abort on shell action not working in pipeline

2016-12-20 Thread Daniel Beck

> On 20.12.2016, at 13:41, Arvind Jayaprakash  wrote:
> 
> Should I be raising this as a bug instead?

If it's reproducible and you're on the newest plugin versions (and newest 
weekly or LTS release of Jenkins), then that seems reasonable.

-- 
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/F201C7E0-AFB8-4979-8A8D-05332844F8CC%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Hudson Personal View doesn't show jobs under folders

2016-12-20 Thread Daniel Beck

> On 20.12.2016, at 12:12, GS_L  wrote:
> 
> My jobs are separated under Jenkins folders.
> When I enter - dir_prepare/.* in the filter edit box to display all the jobs 
> under 'dir_prepare' folder
> no job is displayed.

This is not where you report bugs.

https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue

(Also, make sure you're using Jenkins and not Hudson before filing an issue 
with the Jenkins project.)

-- 
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/7511661E-48C6-4672-982C-B24CAD30919D%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Git pull from GitHub private repository

2016-12-20 Thread hanstra
Looks like switching to the jenkins user ssh-keys credentials helps move 
this forward. The errors I was getting first were directly in the 
configuration of Jenkins. Telling Jenkins to use the ssh-key for the 
Jenkins user gets me past that.

But on deploy, I'm still getting github errors.  When I run this command 
interactively:

SCM_BRANCH="master" /opt/ruby/current/bin/cap -v -f "./Capfile" 
pre_production deploy

The deploy works properly. But when Jenkins tries to run the same basic 
command, the console gives this error:

SCM_BRANCH=master
+ /opt/ruby/current/bin/cap -v -f /opt/jenkins/jobs/fw-test/workspace/Capfile 
pre_production deploy
 ** transaction: start
/opt/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/capistrano-2.12.0/lib/capistrano/recipes/deploy.rb:107:
 warning: Insecure world writable dir 
/opt/jenkins/tools/hudson.model.JDK/java_7_u55 in PATH, mode 040777
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
*** [deploy:update_code] rolling back
Command git ls-remote g...@github.com:ndlib/fw-test.git master returned status 
code pid 114306 exit 128
Build step 'Execute shell' marked build as failure


Any thoughts on what it does not like? 


Thanks,

Tom


On Monday, December 19, 2016 at 7:22:06 PM UTC-5, Mark Waite wrote:

> Did you define a credential for the access to that repository (using the 
> "Add" button on the job UI, or using the credentials section in "Manage 
> Jenkins")?
>
> Is the credential you defined a private key (not a username / password) 
> credential?  If not, it needs to be.
>
> Did you associate that credential with that repository URL in the job 
> definition?
>
> Is the public key for that private key registered with github as an 
> allowed public key for that repository?
>
> Are you using any entries in ~/.ssh/config to use unexpected or different 
> private keys in your access to the github repository?
>
> Mark Waite
>
> On Mon, Dec 19, 2016 at 2:10 PM > wrote:
>
>> I'm attempting to pull from a private repository in GitHub. I have keys 
>> set up so that the jenkins user can pull from the repository but am having 
>> trouble with the Git plugin. When I set the repository URL to:
>>
>> g...@github.com/[myorg]/[myrepo] 
>> 
>>
>> I receive the error message:
>>
>> Failed to connect to repository : Command "git ls-remote -h 
>> g...@github.com:[myorg]/[myrepo] HEAD" returned status code 128:
>> stdout:
>> stderr: Permission denied (publickey).
>> fatal: The remote end hung up unexpectedly
>>
>> However, from the command line, this works:
>>
>> git ls-remote  g...@github.com:[myorg]/[myrepo] HEAD
>> d028a33d1bc3bc4cec49ae53f80f3eb58f09f13d HEAD
>>
>> and this also gives output:
>>
>> git ls-remote -h g...@github.com:[myorg/[myrepo]
>> d028a33d1423bc4cec49ae53f80f3eb5bc09f13d refs/heads/master
>>
>> It is the combination of using both -h and HEAD that gives bad output.
>>
>> Do I have something wrong with the repository?  Or something wrong with 
>> the plugin?  Or what am I missing here?
>>
>> Thanks,
>> Tom Hanstra
>> han...@nd.edu 
>>
>>
>>
>>
>> -- 
>> 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/f1fb8b49-ed9f-4f19-ae6e-dc3960b5a212%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/0adbd62c-fbb6-45a1-992a-2cf82cadf28d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Google Play Android Publisher Plugin

2016-12-20 Thread rginga
I see this plugin in the Jenkins Wiki but not through the plugin manager. 
how can I get this and install it?

-- 
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/e0791cd8-0790-4deb-85ee-11c99630b9f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Running a local Jenkins plugin repository?

2016-12-20 Thread Andrew Ducker
Jenkins plugins are downloaded from a wide variety of sources (as the 
Jenkins downloads site actually forward you on to a mirror).

Our security people aren't willing to open up arbitrary locations to allow 
Jenkins to pull in updated plugins, and managing them by hand is a massive 
pain (particularly when there are dependencies).

The easiest thing to do, for us, would be to have an internal Jenkins 
Plugin repository which could be given persmission to automatically pull 
the latest versions and made them available inside our firewall - 
effectively running a private mirror.

Is this something that is currently possible?

Thanks,

Andy

-- 
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/5daa394d-072c-40a0-b697-e3e10bfb393a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Requiring upstream job to build once and before building downstreams

2016-12-20 Thread Federico Fissore
Hi all

I have 10 jobs, which pack binaries built by one upstream job.
Sometimes, I need to build only 3 of these 10 jobs; other times I need to 
build them all.
In both cases, I would like the one upstream job to run only once.

Is this possible?

Thank you in advance

Federico

-- 
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/2c46e132-e112-4d9b-a4b7-dd28a3ec3474%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Automatic JDK installation not working on AIX systems

2016-12-20 Thread sunnymarc1970
Hi,
I failed to launch a new Jenkins agent (slave) on an AIX system. It seems 
that the “automatic JDK installation” of Jenkins does not work here:

hudson.util.IOException2: Could not find any known supported java version 
in [java, /usr/bin/java, /usr/java/default/bin/java, 
/usr/java/latest/bin/java, /usr/local/bin/java, /usr/local/java/bin/java, 
/usr/jenkins/.jenkins/jdk/bin/java, /bin/java], and we also failed to 
install JDK as a fallback
at 
hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:820)
at 
hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:716)
at 
hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: *Failed to detect the environment for 
automatic JDK installation*. Please report this to 
jenkinsci-users@googlegroups.com: *AIX*
at 
hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:931)
at 
hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:818)
... 6 more
[12/20/16 10:46:34] Launch failed - cleaning up connection
[12/20/16 10:46:34] [SSH] Connection closed.

Is it possible to get AIX systems supported in the near future?

-- 
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/cf2f5b30-84e5-4768-92a6-754dd58bdee2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Authentication problem: Error fetching remote repo 'origin'

2016-12-20 Thread Emma Lilliestam
Hi,
I'm trying to set up a project on a Jenkins server running on an aws
machine, building from a private bitbucket repo. Everything works fine if I
use a public repo. I'm using username+password authentication and have put
those parameters in both at credentials and in the URL.

I've been googling the issue and I have not found anyone who has had a
similar problem with a setup like this one. I hope this is a really simple
problem, but I fear it's not.

I notice that the log outputs the password in
https://USERNAME:passw...@bitbucket.org/***/***.git

as
another than the one that I have put in there.

Building in workspace /var/lib/jenkins/workspace/Jenkins-test
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url
https://USERNAME:p...@bitbucket.org/***/***.git

#
timeout=10
Fetching upstream changes from https://*@bitbucket.org//***.git

 > git --version # timeout=10
 > git fetch --tags --progress https://@bitbucket.org/***/***.git

 +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from
https://@bitbucket.org/Ewahome/***.git

at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
at
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1729)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at
hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags
--progress https://@bitbucket.org//**.git

+refs/heads/*:refs/remotes/origin/*"
returned status code 128:
stdout:
stderr: remote: Invalid username or password. If you log in via a third
party service you must ensure you have an account password set in your
account profile.
fatal: Authentication failed for '
https://**@bitbucket.org//.git/

'

at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1745)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1489)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:801)
... 11 more
ERROR: null
Finished: FAILURE

Best regards,
E

-- 
You received this message 

[no subject]

2016-12-20 Thread Emma Lilliestam


-- 
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/CAL1iz6LKvC0_jJSN6F7uj-7qrOfaCZHcUY16nP%3DhK5g%2BqMJkpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django build is taking too much time in jenkins.

2016-12-20 Thread sidhartha kumar Mahato
In my jenkins "Execute shell" I am using "gunicorn appname.wsgi:application 
--bind=serverip:port" to deploy ,and "sudo service nginx restart"to restart 
the nginx. But because of the "gunicorn bind" command build is taking more 
than 2days. I have tried "gunicorn appname.wsgi:application 
--bind=serverip:port --daemon" which is not working in jenkins "execute 
shell" and "sudo service nginx restart" is also not working .Please help !!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/850b3853-f04c-432e-9021-1346b582ff98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build abort on shell action not working in pipeline

2016-12-20 Thread Arvind Jayaprakash
Should I be raising this as a bug instead?

On Monday, December 12, 2016 at 9:38:37 PM UTC+5:30, Arvind Jayaprakash 
wrote:
>
> Yes. I've attached the versions of all plugins as a reference
>
> On Monday, December 12, 2016 at 9:33:31 PM UTC+5:30, Daniel Beck wrote:
>>
>>
>> > On 12.12.2016, at 12:55, Arvind Jayaprakash  
>> wrote: 
>> > 
>> > I guess this is not the first report on the build abort action not 
>> working in a pipeline 
>>
>> Are you on the newest versions of all Pipeline-related 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/e12d459c-ac09-4021-9427-8377835e2a7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error while updating Jenkins job config using Rest API

2016-12-20 Thread Kruti Vyas
I am trying to change the configuration of a job using Jenkins' rest api 
using my java code but my code is not able to connect to jenkins url. My 
code is showing 403 http response while connecting. Please suggest me the 
changes so that I can update my job without restarting the jenkins. I am 
using jenkins 2.19.4 version.

try
{
String fileDir = "D:\\"; // upload directory
  String fileName = "config.xml";
  URL url = new URL("http://myjenkins/job/test/config.xml";); // Jenkins 
URL localhost:8080, job named 'test'

  String user = "username"; // username
  String pass = "password"; // password or API token
  String authStr = user +":"+  pass;
  String encoding = 
DatatypeConverter.printBase64Binary(authStr.getBytes("utf-8"));

  HttpURLConnection connection = (HttpURLConnection) 
url.openConnection();

  connection.setReadTimeout(1);
  connection.setConnectTimeout(15000);
  connection.setRequestMethod("POST");
  connection.setUseCaches(false);
  connection.setDoInput(true);
  connection.setDoOutput(true);
  connection.setRequestProperty  ("Authorization", "Basic " + encoding);

  try
  {

  String filePath = "D:\\config.xml";
  FileInputStream inputStream = new FileInputStream(new 
File(filePath));
  FileReader fr = new FileReader(new File(filePath));
  BufferedReader br = new BufferedReader(fr);

String sCurrentLine;
System.out.println(sCurrentLine = br.readLine());
  OutputStream os = connection.getOutputStream();

BufferedWriter writer = new BufferedWriter(
new OutputStreamWriter(os, "UTF-8"));
while ((sCurrentLine = br.readLine()) != null) {
//System.out.println("not going inside");
writer.write(sCurrentLine);
System.out.println(sCurrentLine);
}
writer.flush();
writer.close();
os.close();
int responseCode=connection.getResponseCode();
System.out.println(responseCode);
  }
  catch(Exception e)
  {
  e.printStackTrace();
  }

}
catch(Exception e)
{
e.printStackTrace();
}



-- 
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/81653793-89d3-4e3d-afab-30b6cdac7346%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error while updating Jenkins job config using Rest API

2016-12-20 Thread Kruti Vyas

own vote
favoriteEnter code here... 


I am trying to change the configuration of a job using Jenkins' rest api 
using my java code but my code is not able to connect to jenkins url. My 
code is showing 403 http response while connecting. Please suggest me the 
changes so that I can update my job without restarting the jenkins. I am 
using jenkins 2.19.4 version.

try
{
String fileDir = "D:\\"; // upload directory
  String fileName = "config.xml";
  URL url = new URL("http://myjenkins/job/test/config.xml";); // Jenkins 
URL localhost:8080, job named 'test'

  String user = "username"; // username
  String pass = "password"; // password or API token
  String authStr = user +":"+  pass;
  String encoding = 
DatatypeConverter.printBase64Binary(authStr.getBytes("utf-8"));

  HttpURLConnection connection = (HttpURLConnection) 
url.openConnection();

  connection.setReadTimeout(1);
  connection.setConnectTimeout(15000);
  connection.setRequestMethod("POST");
  connection.setUseCaches(false);
  connection.setDoInput(true);
  connection.setDoOutput(true);
  connection.setRequestProperty  ("Authorization", "Basic " + encoding);

  try
  {

  String filePath = "D:\\config.xml";
  FileInputStream inputStream = new FileInputStream(new 
File(filePath));
  FileReader fr = new FileReader(new File(filePath));
  BufferedReader br = new BufferedReader(fr);

String sCurrentLine;
System.out.println(sCurrentLine = br.readLine());
  OutputStream os = connection.getOutputStream();

BufferedWriter writer = new BufferedWriter(
new OutputStreamWriter(os, "UTF-8"));
while ((sCurrentLine = br.readLine()) != null) {
//System.out.println("not going inside");
writer.write(sCurrentLine);
System.out.println(sCurrentLine);
}
writer.flush();
writer.close();
os.close();
int responseCode=connection.getResponseCode();
System.out.println(responseCode);
  }
  catch(Exception e)
  {
  e.printStackTrace();
  }

}
catch(Exception e)
{
e.printStackTrace();
}




-- 
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/f9e66e94-75ff-43b9-81ef-3f2e9cc40010%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Hudson Personal View doesn't show jobs under folders

2016-12-20 Thread GS_L
My jobs are separated under Jenkins folders.
When I enter - dir_prepare/.* in the filter edit box to display all the 
jobs under 'dir_prepare' folder
no job is displayed.

-- 
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/16ecdfd3-fb7c-45e6-b66d-fa5b5f224150%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Decide on return value of job using pipeline plugin

2016-12-20 Thread Andreas Wuz
Hi,

I am building a pipeline in Jenkins 2.36 with the pipeline plugin. I have 
some jobs to execute. 

To call the job I use: build job: 'transformInput', parameters: 
[string(name: 'cert_request', value: ''), string(name: 'cert_signature', 
value: ''), string(name: 'public_cert', value: '')], all works fine

But now I have to check whether the job was successful or not. When it 
ended successful, another job (e.g. JOB2) should be built. When it failed, 
job JOB3 should be built. 

How can I perform this "if" with the pipeline plugin?

-- 
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/d56aad0c-799c-478d-8c96-e7d6f34984a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


UserID upper/lower case access rights

2016-12-20 Thread Kr1stom
Hi

I'm using openID to authorize users and role-based strategy for the access 
rights management. The problem is that when users log in, sometimes they 
get the userID in uppercase and sometimes in lower case which causes role 
based strategy to fail giving the access rights to certain user if I 
haven't declared both userID's (upper and lower case). Does anybody know 
where this difference in logging in comes from? When is userID in upper 
case and when is userID in lower case?


-- 
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/884f81d0-fddb-41f1-9130-ac0e68e668c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.