Re: Git Plugin - How specify use ssh in "Repository URL" ?

2020-01-22 Thread Ed of the Mountain
Thank you for the advice Mark.

I would be fine using 'git clone', except I hate missing the "*Recent 
Changes*' that I believe was generated because I used the Jenkins git 
plugin.

I will keep working on it.  Thanks again.

-Ed

On Tuesday, January 21, 2020 at 3:12:32 PM UTC-6, Mark Waite wrote:
>
>
> On Tue, Jan 21, 2020 at 10:24 AM Eddie Sutton  > wrote:
>
>> *What I Tried:*
>>
>> 1) Set *Source Code Management > GIT > Repository URL* to:
>>
>> acme...@vs-ssh.visualstudio.com:v3/acmeinc/my-app/my-app
>>
>> Failed to connect to repository : Command "git ls-remote -h -- 
>> acme...@vs-ssh.visualstudio.com:v3/acmeinc/my-app/my-app HEAD" returned 
>> status code 128:
>> stdout:
>> stderr: Host key verification failed.
>> fatal: Could not read from remote repository.
>>
>>
> That message is a "permission denied" message.  It could be for many 
> different reasons, possibly including:
>
>1. Failed to provide a private key credential in the Jenkins job 
>definition.  Use the Jenkins credentials plugin to add the private key 
>which has also been registered with visualstudio.com
>2. Failed to register the public key with visualstudio.com.  Add the 
>public key from the private key credential to the repository on 
>visualstudio.com
>3. Used an outdated command line git version.  Use a recent command 
>line git version instead
>4. Used command line git from cygwin instead of using git for 
>windows.  The git plugin is not tested with cygwin.  It is tested 
>frequently with recent releases of git for windows.  Use git for windows 
>instead of cygwin
>
>  
>
>> *Work-Around*
>>
>> My work-around was to change job to use a bash shell.  
>>
>> However, I very much miss the "*Recent Changes*" section that was 
>> displayed in my job previously.  
>>
>> I *think* the "*Recent Changes*" were generated from the GIT Plugin.
>>
>>
>>
>> echo "git clone using public SSH key of build slave..."
>> echo "Works but no 'Recent Changes' section for your job"
>> git clone acme...@vs-ssh.visualstudio.com:v3/acmeinc/my-app/my-app .
>>
>> Thanks in advance for any tips or suggestions,
>>
>>
> You're welcome to use your own 'git clone' inside the job definition, 
> though that removes many of the things that Jenkins could do for you and 
> makes it more difficult for you to use additional agents.  Each agent will 
> need the same private key credentials.
>
>  
>
>> -Ed
>>
>>
>>
>> -- 
>> 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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/CAKas9SQ8MdJud0Wsu6tR8%3DvkeYevVrZseMyYuUWMNfYqsvRxFA%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> Thanks!
> Mark Waite
>

-- 
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/492fe750-2014-4958-b145-3fc69cbcb3fc%40googlegroups.com.


Re: Under Jenkins SignTool Error "No certificates were found", works fine logged on as user

2016-02-24 Thread Ed of the Mountain
Each slave has it's own USB DigiCert token.

   - I have multiple Jenkins slaves running on a common virtual machine 
   host.
   - I have 1 dedicated USB DigiCert token dedicated to the Windows build 
   slave VM
   - I have a second dedicated USB DigiCert token dedicated to the OS X 
   build slave VM
   
VMware Workstate / Fusion or ESXi make it easy to share a USB token with a 
specific VM.  

As far as I know, you cannot connect the same USB token with multiple VMs.

However, additional DigiCert tokens are only $25.

-Ed

My Windows slave has a pop-up watcher to automatically logon written in C# 
as a console app:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;



// System.Windows.Automation needs add reference to:
// C:\Program Files\Reference 
Assemblies\Microsoft\Framework\v3.0\UIAutomationClient.dll
// C:\Program Files\Reference 
Assemblies\Microsoft\Framework\v3.0\UIAutomationTypes.dll
using System.Windows.Automation;


namespace token_logon
{
class Program
{
static int SatisfyEverySafeNetTokenPasswordRequest(string password)
{
int errorCode = 1;

bool exitLoop = false;
int count = 0;

Automation.AddAutomationEventHandler(WindowPattern.WindowOpenedEvent, 
AutomationElement.RootElement, TreeScope.Children, (sender, e) =>
{
var element = sender as AutomationElement;
if (element.Current.Name == "Token Logon")
{
WindowPattern pattern = 
(WindowPattern)element.GetCurrentPattern(WindowPattern.Pattern);
pattern.WaitForInputIdle(1);
var edit = element.FindFirst(TreeScope.Descendants, new 
AndCondition(
new 
PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Edit),
new PropertyCondition(AutomationElement.NameProperty, 
"Token Password:")));

var ok = element.FindFirst(TreeScope.Descendants, new 
AndCondition(
new 
PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Button),
new PropertyCondition(AutomationElement.NameProperty, 
"OK")));

if (edit != null && ok != null)
{
count++;
ValuePattern vp = 
(ValuePattern)edit.GetCurrentPattern(ValuePattern.Pattern);
vp.SetValue(password);
Console.WriteLine("SafeNet window (count: " + count + " 
window(s)) detected. Setting password...");

InvokePattern ip = 
(InvokePattern)ok.GetCurrentPattern(InvokePattern.Pattern);
ip.Invoke();

// Signal do loop to exit
// If wanted to get fancey, we could look for a 
password failed window
// and wait 1 second to see if "Token Logon" closes 
exitLoop = true;
errorCode = 0;
}
else
{
Console.WriteLine("SafeNet window detected but not with 
edit and button...");
}
}
});


Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();
while (false == exitLoop)
{
Thread.Sleep(100);
if (10 < stopwatch.Elapsed.TotalSeconds)
{
exitLoop = true;
}
}



// Throws exception when console is hidden
//while (false == exitLoop)
//{

//if (Console.KeyAvailable)
//{
//ConsoleKeyInfo key = Console.ReadKey(true);
//switch (key.Key)
//{
//case ConsoleKey.Q:
//Console.WriteLine("Quit...");
//exitLoop = true;
//break;
//default:
//break;
//}

//}
//// Do something more useful
//}

Automation.RemoveAllEventHandlers();

return errorCode;
}

static void DisplayUsage()
{
Console.WriteLine("Usage: You must start token-logon.exe in it's 
own process *before* calling signtool\n");

Console.WriteLine("Batch Example:");
Console.WriteLine("--");
Console.WriteLine("start token-logon.exe myPaswd");
Console.WriteLine("echo Use ping as delay to make sure 
token-logon.exe is started");
Console.WriteLine("ping 127.0.0.1 -n 2 > nul");
Console.WriteLine("signtool sign /t http://timestamp.

Re: Under Jenkins SignTool Error "No certificates were found", works fine logged on as user

2015-08-27 Thread Ed of the Mountain
Solved.

Disable jenkins service and replace with slave-agent.jnlp.

Yay! I finally have automatic EV code signing!

-Ed


On Thursday, August 27, 2015 at 9:51:29 AM UTC-5, Ed of the Mountain wrote:
>
> When I try to code sign in my Jenkins job I receive a SignTool error:
>
>
> c:\jenkins\workspace\codesign-windows>
>
> signtool sign /t http://timestamp.digicert.com /n "Acme Inc." code.exe 
>
> SignTool Error: No certificates were found that met all the given criteria.
>
>
> I am using a DigiCert Extend Validation ( EV ) USB token that requires the 
> USB token be connected to the build machine.  This works fine when logged on 
> as normal user.
>
>
>- I am running Jenkins as a Windows service.
>- Service Log On is set to Local System account.
>- Service is *allowed to interact with desktop.*
>
>
>
> When I logon as a normal user to the build machine, it works fine.
>
>
> 1 - signtool sign /t http://timestamp.digicert.com /n "Acme Inc." code.exe
>
> 2 - This triggers a pop-up "Token Logon" dialog that requires user interaction
>
> 3 - I have a separate "Token Logon" watcher that finds the WIndows ID and 
> enters password.
>
> 4 - Code is signed automatically
>
>
> C:\jenkins\workspace\codesign-windows>signtool sign /t 
> http://timestamp.digicert
> .com /n "The Charles Machine Works, Inc." token-logon.exe
> Done Adding Additional Store
> Successfully signed: token-logon.exe
>
>
> Any suggestions to try are much appreciated,
>
>
> -Ed
>
>

-- 
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/94d6f603-fad3-4c76-ade9-4dc8a771434c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Seek tools for text document variable substitution from a key / value input file ?

2015-08-17 Thread Ed of the Mountain
I am developing in using C++ and Qt 5.5.  However, the gradle, ant, maven 
solutions sound interesting.

I guess I will need to resort to some sed bash or python scripting to do 
what I need.

Thank you both for the suggestions,

-Ed

On Monday, August 17, 2015 at 9:24:17 AM UTC-5, walter.kelt wrote:
>
> Ant and maven have filter functionality that can be used to update text 
> files that use "properties". 
> May be handy if you are using ant or maven to create build. 
>
> Sent from my iPad 
>
> > On Aug 17, 2015, at 10:16 AM, Daniel Beck  > wrote: 
> > 
> > Use sed? https://en.wikipedia.org/wiki/Sed 
> > 
> > Gradle also does this if your build is based on that -- look for 
> filter(…) on e.g. the copy task. 
> > 
> > Of course neither supports your file format out of the box. 
> > 
> >> On 17.08.2015, at 16:11, Eddie Sutton > 
> wrote: 
> >> 
> >> I am looking for tools to automatically update text documents with 
> relevant build information such as version information, date of build, the 
> new features included with a milestone. 
> >> 
> >> SubWCRev works well but is limited to Subversion properties: 
> >> 
> >> 
> http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-subwcrev-example.html 
> >> 
> >> ReadMe Template File: 
> >> --- 
> >> Build date: $WCDATE$ 
> >> 
> >> 
> >> I am looking for a tool could read an input text file containing key 
> value pairs, and substitute variables in a document template for HTML 
> files, readme.txt files, RSS news feed files, etc. 
> >> 
> >> 
> >> Input File (Manually Maintained) 
> >> --- 
> >> ReleaseSummary="New Features and Bug Fixes" 
> >> Feature1="Cure for cancer" 
> >> DownloadUrl="http://acme/com/downloads/installer-1.2.3456.zip"; 
> >> 
> >> 
> >> Output Template File: 
> >> - 
> >> $ReleaseSummary$ 
> >> Download 
> >> 
> >> Thanks in advance for any suggestions, 
> >> 
> >> -Ed 
> >> 
> >> 
> >> -- 
> >> 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/CAKas9STLEK1b%3Dh0RH%2BmJOWxK-FQW4arTSK1MowWnL6bNEdm3YQ%40mail.gmail.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-use...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/8FB112A8-ADD9-401F-8E8B-D6D8B7053EE7%40beckweb.net.
>  
>
> > 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/74b289be-b86b-4a9e-9a8a-732affb769c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cloud alternatives for hosting Jenkins + build slaves Windows, OS X, and maybe Linux ? Snapshot capability.

2015-07-02 Thread Ed of the Mountain
Good point Richard.

I think I need to lobby IT to purchase a dedicated VM host server for 
software build and test and I must have vSphere support.

-Ed

On Wednesday, July 1, 2015 at 4:08:37 PM UTC-5, Richard Bywater wrote:
>
> Just as an aside and not a direct help, but are you sure that you'd be 
> able to use Amazon/CloudBees/etc. in your company for the purpose you want? 
> Sounds to me that if the IT department aren't willing to give the relevant 
> controls to you to run VMs internally, then the chance of opening up 
> network access from the company network to a cloud provider and sending 
> company stuff out there is kind of unlikely.
>
> Just my 2 cents :)
>
> Richard.
>
> On Thu, 2 Jul 2015 at 07:09 Ed of the Mountain  > wrote:
>
>> The only reason I want to move to cloud is because my IT department will 
>> not give me control of the VMs I wanted to host on their ESXi 5.5 
>> infrastructure. They refuse to give me vSphere  client access.  It wants to 
>> limit me to Remote Desktop and SSH.
>>
>> However I would love to make backup my IT department's problem. Yet if I 
>> cannot setup new VMs and take VM snapshots I do not see how I can manage 
>> the build system efficiently.
>>
>> I need to create a master Jenkins plus several Jenkins slave VM's plus a 
>> dozen or so clean VM's for software installation and smoke testing.  
>>
>> I need to research Amazon and Cloud Bees and such.  I was hoping someone 
>> here had used something like this with Jenkins and could share their 
>> feedback.
>>
>> -Ed
>>
>>
>> On Saturday, June 20, 2015 at 4:17:33 AM UTC-5, Arun Bhosale wrote:
>>>
>>> Hi Ed,
>>>
>>> In my compnay we use internal cloud infra that is based on Cloud 
>>> Platform(CP). It is very easy to use, but a bit difficult to build and 
>>> maintain.
>>> My Jenkins is on one such VM that is hosted on CP. It works for me well.
>>>
>>> Before moving to cloud, if you the infra, why not use Oracle VirtualBox?
>>>
>>>
>>>
>>> On Thursday, 18 June 2015 20:14:58 UTC+5:30, Ed of the Mountain wrote:
>>>>
>>>> Has anyone had a good experience about moving into the cloud?  What are 
>>>> some alternatives?
>>>>
>>>>
>>>> How hard was it for you to create new VMs using your own Linux ISO 
>>>> images or MSDN Windows ISO images?
>>>>
>>>>
>>>> My IT department is refusing to grant access to vSphere.  They want to 
>>>> confine me to remote desktop.  Without easy snapshot capability through 
>>>> vSphere the benefits of a build infrastructure diminish.  Plus I cannot 
>>>> quickly setup new VMs on my own.
>>>>
>>>> I really wish what I had setup at my last company.  A dual Xeon blade 
>>>> server with 32GB RAM dedicated to software building,
>>>>
>>>> Thanks in advance for any feedback,
>>>>
>>>> -Ed
>>>>
>>>  -- 
>> 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/cc7f97ce-f051-42ac-a1f6-55dff6b19b4d%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/cc7f97ce-f051-42ac-a1f6-55dff6b19b4d%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/1ba51376-68d1-44b5-a2b4-40f48c91341c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cloud alternatives for hosting Jenkins + build slaves Windows, OS X, and maybe Linux ? Snapshot capability.

2015-07-01 Thread Ed of the Mountain
The only reason I want to move to cloud is because my IT department will 
not give me control of the VMs I wanted to host on their ESXi 5.5 
infrastructure. They refuse to give me vSphere  client access.  It wants to 
limit me to Remote Desktop and SSH.

However I would love to make backup my IT department's problem. Yet if I 
cannot setup new VMs and take VM snapshots I do not see how I can manage 
the build system efficiently.

I need to create a master Jenkins plus several Jenkins slave VM's plus a 
dozen or so clean VM's for software installation and smoke testing.  

I need to research Amazon and Cloud Bees and such.  I was hoping someone 
here had used something like this with Jenkins and could share their 
feedback.

-Ed


On Saturday, June 20, 2015 at 4:17:33 AM UTC-5, Arun Bhosale wrote:
>
> Hi Ed,
>
> In my compnay we use internal cloud infra that is based on Cloud 
> Platform(CP). It is very easy to use, but a bit difficult to build and 
> maintain.
> My Jenkins is on one such VM that is hosted on CP. It works for me well.
>
> Before moving to cloud, if you the infra, why not use Oracle VirtualBox?
>
>
>
> On Thursday, 18 June 2015 20:14:58 UTC+5:30, Ed of the Mountain wrote:
>>
>> Has anyone had a good experience about moving into the cloud?  What are 
>> some alternatives?
>>
>>
>> How hard was it for you to create new VMs using your own Linux ISO images 
>> or MSDN Windows ISO images?
>>
>>
>> My IT department is refusing to grant access to vSphere.  They want to 
>> confine me to remote desktop.  Without easy snapshot capability through 
>> vSphere the benefits of a build infrastructure diminish.  Plus I cannot 
>> quickly setup new VMs on my own.
>>
>> I really wish what I had setup at my last company.  A dual Xeon blade 
>> server with 32GB RAM dedicated to software building,
>>
>> Thanks in advance for any feedback,
>>
>> -Ed
>>
>

-- 
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/cc7f97ce-f051-42ac-a1f6-55dff6b19b4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Windows 7 slave-agent.jnlp error: "Unable to launch application" ( FailedDownloadException: Unable to load resource ) ?

2014-08-25 Thread Ed of the Mountain
I am setting up a new Jenkins build server and slaves at my new company.  I 
tried three different methods to launch from slave.  I tried disabling 
Windows 7 firewall.

When I use the "Launch" button from browser on slave I get an "Application 
Error" saying "Unable to launch the application". See details below.  

http://127.0.0.1:8080/computer/esuttonwin7x32/";>
  
Slave Agent for esuttonwin7x32
Jenkins project
https://jenkins-ci.org/"/>
  
  

  
  

http://127.0.0.1:8080/jnlpJars/remoting.jar"/>

  
  

b87430ff884367f280e63836f435e157657555ae6fb465483001a0e3a8679d6a
esuttonwin7x32
-url
http://127.0.0.1:8080/
-url
http://172.17.144.33:8080/
  


com.sun.deploy.net.FailedDownloadException: Unable to load resource: 
http://127.0.0.1:8080/jnlpJars/remoting.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown 
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown 
Source)
at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Everything is running in a VM including the Jenkins master and slave:

   - Master: Jenkins 1.576 ( Ubuntu 14.04 LTS)
   - Master: java version "1.7.0_65"
   
   - Slave: Windows 7 x32
   - Slave: java version "1.8.0_05"
   
The following two commands fail to connect to server from slave:

   - javaws http://127.0.0.1:8080/computer/esuttonwin7x32/slave-agent.jnlp
   - java -jar slave.jar -jnlpUrl 
   http://127.0.0.1:8080/computer/esuttonwin7x32/slave-agent.jnlp

Any tips or suggestions are much appreciated,

-Ed

-- 
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.
For more options, visit https://groups.goo

Re: Advice on integrating SonarQube with Jenkins?

2013-10-23 Thread Ed of the Mountain
This may apply to C++ development mostly, but I am hearing that SonarQube 
may not be well regarded.  

I suppose I could build similar functionality to the SonarQube C++ Plugin 
(Community) by 
installing the listed various external code analyzers dependencies this 
plug-in uses:

*Various external code analyzers used by SonarQube C++ Plugin:*


   - *Cppcheck*. Detects a wide range of problems ranging from performance 
issues and resource leakage to undefined behaviour. Binary packets are 
available on/for various platforms. Using the latest release pays off in 
general; compile from source if in doubt.
   - *RATS*. Detects (potential) security problems in code, sensible for code 
bases with increased security requirements. Use binary packages or compile from 
source.
   - *Vera++*. Focuses on code style issues. There's a binary package for 
Windows, users of other platforms are likely to compile themselves.
   - *Valgrind* (memcheck). Detects various memory management problems at 
runtime. Basically Linux only; just use the packages from your distribution.
   - *CppNcss*. Provides cyclomatic (McCabe) complexity measures. This is a 
Java program distributed as a zip archive. Just unpack and make sure the "bin" 
directory is in PATH.
   - *Pc-Lint*. Static analyser from Gimpel Software
   - *GCC, gcov, gcovr, Bullseye* and Python for coverage determination. 
Install Python and place the script somewhere on the PATH. 
   
I see Jenkins already has at least a Cppcheck 
Plugin and 
likely has added plugins supporting the above.  I think C++ Linux code 
analysis / code coverage might be a little easier than Windows.  I think 
Windows has all the pieces they just may be totally different or likely 
commercial rather than open source.


On Saturday, October 19, 2013 2:33:51 AM UTC-5, teilo wrote:
>
> Is best not to install it anywhere as it is an awful piece of software 
> based on it changing you build such that you are never guaranteed to get 
> the same build result foe identical source.
> Ie release 1.2.3 today and tag it, a year layer check out that tag and 
> build again and you can get a build failure or completely different report 
> result.
>
> That said if you must install it the good practice these days is to use a 
> new VM for each service.
>
A VM for each server seems like a good idea rather than combining with any 
of my existing VM's.

Thank you for the feedback!

-Ed 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Advice on integrating SonarQube with Jenkins?

2013-10-18 Thread Ed of the Mountain
Is it best to install SonarQube on same machine as master?  The Slave?  One 
instance per OS ?

Our system consists of ESXi running the following 5 VMs. 

   - 1 x Jenkins Master ( RHEL5.2)
   - 3 x Linux Slaves ( RHEL5.2 )
   - 1 x Windows 7 Slave
   
I am just getting started with SonarQube in a C++ development environment.

Thanks in advance,

-Ed

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How can a Jenkins slave get copy of job config.xml from master to uses as build artifact?

2013-04-29 Thread Ed of the Mountain
Adam,

Thank you, that works!

On Sunday, April 28, 2013 6:07:54 AM UTC-5, Adam PAPAI wrote:

> It can be accessed via:
>
> http://jenkinsurl/job/jobname/config.xml
>
> So perhaps at the very end of your test steps, you should wget/curl it and 
> save it as an artifact.
>


I just need to figure out how to lower my Jenkins security so that salves 
can wget config.xml without other users accidentally messing up job 
configurations.  Or it pass credentials with wget.

Thanks again!

-Ed

 

>
>   Ed of the Mountain 
>  April 26, 2013 7:19 PM
> What are some approaches for a slave to get a copy of a job's *config.xml* 
> configuration 
> files?
>
> Builds created on slaves do not have a physical copy of the job's *
> config.xml*.  
>
> Located on the Linux Jenkins master at:
>
>
>
>  

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




How can a Jenkins slave get copy of job config.xml from master to uses as build artifact?

2013-04-26 Thread Ed of the Mountain
What are some approaches for a slave to get a copy of a job's *config.xml* 
configuration 
files?

Builds created on slaves do not have a physical copy of the job's *
config.xml*.  

Located on the Linux Jenkins master at:

/var/lib/jenkins/jobs//config.xml



My management wants us to add the Jenkins job configuration *config.xml* files 
as part of the build artifacts released into our release system.

Thanks in advance,

-Ed

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




How set java.io.tmpdir=/tmp for Jenkins slave?

2013-01-07 Thread Ed of the Mountain
Is there a way to set system property: java.io.tmpdir=/tmp for a slave?  I 
am launching the slave via SSH.  I assume if I can map 
java.io.tmpdir=/volume1/tmp 
my problem is solved.

My problem is I am running out of /tmp space with a Jenkins slave running 
on a Synology ARM based NAS which uses tmpfs or RAM as the /tmp resource.

Thanks in advance,

-Ed

   
   




How make WebSVN rev, file, & diff URLs work with Jenkins WebSVN or WebSVN2 plug-in?

2012-09-28 Thread Ed of the Mountain
I am using WebSVN 2.3.3.  Any advice getting this to integrate with Jenkins 
is much appreciated:
*
*
*Built-in Jenkins WebSVN Support*
*
*
Built-in WebSVN partially works. I configured Jenkins Job WebSVN URL as:

*http://fesnaval.fescorp.com/websvn/wsvn/NTI_Battery_Exerciser/trunk/*


The built-in WebSvn works for the revision URL:

http://fesnaval.fescorp.com/websvn/wsvn/NTI_Battery_Exerciser/trunk/?&rev=305&sc=1


But not for a file URL (note double "/trunk/trunk/" in URL and missing 
"rev=305" );

http://fesnaval.fescorp.com/websvn/wsvn/NTI_Battery_Exerciser*/trunk/trunk/*
Battery_Exerciser_Client/src/mainwindow.cpp

 
and not for a file diff URL:

http://fesnaval.fescorp.com/websvn/wsvn/NTI_Battery_Exerciser/trunk/trunk/Battery_Exerciser_Client/src/mainwindow.cpp?op=diff&rev=305


*WebSVN2 *
*
*
I can not get anything working with WebSVN2.  I configured the Jenkins 
job's WebSVN2 URL s:

http://fesnaval.fescorp.com/websvn/wsvn/listing.php?repname=diagnostics-snmp&path=/trunk/.


The revision URL WebSVN2 generates is something like:

http://fesnaval.fescorp.com/websvn/revision.php?repname=diagnostics-snmp&rev=1261


It expected  the URL to be:

http://fesnaval.fescorp.com/websvn/wsvn/diagnostics-snmp/trunk/?rev=1261


I love WebSvn.  Has anyone got this working?  Can you share the syntax of 
your Jenkins job;s WebSVN2 URL?

Thanks in advance,


-Ed 
Jenkins 1.478 Winstone server on RHEL 5.2
WebSvn 2.3.3 on Apache RHEL 5.2

http://fesnaval.fescorp.com/websvn/wsvn/diagnostics-snmp/trunk/?rev=1261

 


Examples of open source C++ projects with unit testing and reporting?

2012-04-18 Thread Ed of the Mountain
I am seeking an example of what is possible with Jenkins.  Preferably
a C/C++ project that performs CI and automated unit tests and
publishes results.  Any links to web sites are appreciated.
Especially ones that publish test results and test cases used.

I am trying to get a "by example look" of what sort of test frameworks
(boost, googletest, qttest ) are commonly used, how unit tests are
written, common XML test output formats, and how reports are
published.

Thanks,

-Ed


Slave on "Vista Home" org.jinterop.dcom.common.JIException (I have read the wiki) ?

2012-04-18 Thread Ed of the Mountain
I have succeeded running slaves on both XP and Windows 7 64-bit.  On
Vista Home edition I cannot figure out how to get past
org.jinterop.dcom.common.JIException.

1 - I have read the wiki.
https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM
2 - Disabled the Windows Firewall
3 - Remote registry service is started

Any advice is much appreciated.

Connecting to 10.0.0.44
ERROR: Access is denied. See 
http://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM
for more information about how to resolve this.
org.jinterop.dcom.common.JIException: Message not found for errorCode:
0x0005
at org.jinterop.dcom.core.JIComServer.init(JIComServer.java:542)
at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:
458)
at org.jinterop.dcom.core.JIComServer.(JIComServer.java:427)
at org.jvnet.hudson.wmi.WMI.connect(WMI.java:59)
at
hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:
152)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: rpc.FaultException: Received fault. (unknown)
at
rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:
142)
at rpc.Stub.call(Stub.java:112)
at org.jinterop.dcom.core.JIComServer.init(JIComServer.java:538)
... 10 more