Re: Build history disappeared. Why? & How to fix?

2019-05-08 Thread Dirk Heinrichs
Am Mittwoch, den 08.05.2019, 11:20 -0700 schrieb Steve K:

When I look at the Jenkins tree, on the server machine, under 
jobs\\builds, I see plenty of ## (build number) directories.

We've also sometimes seen this in the past when we where running the master on 
Windows. History usually re-apperared after restarting Jenkins. We've never 
seen this again since our master runs on Linux.

HTH...

Dirk

--

Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com
Website: www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
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/688d04de69ea6a3271b804fc490e36d7d7279f8b.camel%40opentext.com.
For more options, visit https://groups.google.com/d/optout.


Re: build VC++

2019-05-08 Thread Rich Stephens




It's exactly the same.  You use the MSBuild plugin.  I am using it to build 
a C/C++ project (I actually build from the solution file, not the vcxproj 
file, but it works either way).

You just specify the project file (.sln or .vcxproj) in the build 
configuration, and add any command line argument to ensure you're getting 
the right project configuration, like the below image.  Let me know if you 
have any specific questions I can answer.:


[image: msbuild.PNG]






-- 
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/bea81356-df87-44c7-ad66-7c1249e764c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build history disappeared. Why? & How to fix?

2019-05-08 Thread Steve K
Hello,

We are running Jenkins ver 2.150.3 served by a Windows 2008 R2 machine.
Normally, and for the majority of our jobs, when someone browses to a job's 
page, we see multiple builds under "Build History" on the left-hand side of 
the page. Normal stuff.
Recently, a few jobs have nothing under Build History.
The jobs are configured to keep 25 builds.
When I look at the Jenkins tree, on the server machine, under 
jobs\\builds, I see plenty of ## (build number) directories.
For the jobs that are experiencing this problem, however, there is no 
"build.xml" file under the ## directories.

How could that have happened?  To my knowledge, no one deliberately set out 
to remove build history.
Is there a reasonable way to fix this?  (Manually re-creating each 
build.xml is not, what I'd consider to be, a reasonable approach).

Thanks in advance for any help you may be able to provide.

-- 
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/91c742b9-b8ee-4f72-9f3d-9131e3d7427e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: build VC++

2019-05-08 Thread Slide
How would you build it from the command line? Figure that out and then
that's how you build it in Jenkins as well.

On Wed, May 8, 2019 at 10:37 AM sudheer k  wrote:

> Rich,
>
> I know how to build the C# applications because they have mentioned very
> clear in the jenkins documentation, but here I want to build the VC++
> (Visual C++) i.e .vcxproj file
>
> On Wednesday, May 8, 2019 at 1:45:21 PM UTC, Rich Stephens wrote:
>>
>> Sudheer,
>>
>> It's pretty straightforward.  On the "Plugin Manager" page, look for
>> "MSBuild Plugin".  That one can call MSBuild (part of Visual Studio) to
>> build .proj and .sln files.
>>
>> If you click on the name of the plugin, it takes you to the plugin home
>> page, which has some more information about configuring the plugin to point
>> to your installation of MSBuild.
>>
>> This is all, of course, assuming you are running Jenkins on Windows and
>> have whatever version of Visual Studio you normally use to build the
>> project installed on the same machine that you have Jenkins on.
>>
>> Rich
>>
>> On Wednesday, May 8, 2019 at 9:18:40 AM UTC-4, sudheer k wrote:
>>>
>>> Hi Team,
>>>
>>> I want to build the VC++ applications by using jenkins, can you tell me
>>> weather it is possible to build those applications using jenkins.
>>> because i haven't find any plugins or resources to build the VC++
>>> application.
>>>
>> --
> 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/d6d111cb-4591-4cca-93b8-3bfd6bc5c30f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Website: http://earl-of-code.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/CAPiUgVe4TibE66PP1zHPSyQQmmZydqgwMA8F5PpW6QJJ16jkgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: build VC++

2019-05-08 Thread sudheer k
Rich,

I know how to build the C# applications because they have mentioned very 
clear in the jenkins documentation, but here I want to build the VC++ 
(Visual C++) i.e .vcxproj file

On Wednesday, May 8, 2019 at 1:45:21 PM UTC, Rich Stephens wrote:
>
> Sudheer,
>
> It's pretty straightforward.  On the "Plugin Manager" page, look for 
> "MSBuild Plugin".  That one can call MSBuild (part of Visual Studio) to 
> build .proj and .sln files.
>
> If you click on the name of the plugin, it takes you to the plugin home 
> page, which has some more information about configuring the plugin to point 
> to your installation of MSBuild.
>
> This is all, of course, assuming you are running Jenkins on Windows and 
> have whatever version of Visual Studio you normally use to build the 
> project installed on the same machine that you have Jenkins on.
>
> Rich
>
> On Wednesday, May 8, 2019 at 9:18:40 AM UTC-4, sudheer k wrote:
>>
>> Hi Team,
>>
>> I want to build the VC++ applications by using jenkins, can you tell me 
>> weather it is possible to build those applications using jenkins.
>> because i haven't find any plugins or resources to build the VC++ 
>> application.
>>
>

-- 
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/d6d111cb-4591-4cca-93b8-3bfd6bc5c30f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-05-08 Thread Mark Waite


On Wednesday, May 8, 2019 at 7:18:31 AM UTC-6, A M wrote:
>
> hi Mark
>
> I am struggling with a very similar issue. What exactly do you mean by 
> your comment and how do I achieve this?
>
>
I said:

> Run the Windows agent from the Windows desktop rather than running it 
from a service which has been allowed to interact with the desktop.

The most direct way to implement what I described is to:

   1. Login to the Windows desktop machine where code signing will be run
   2. Open a web browser to the Jenkins server
   3. Create an agent (a node) to represent that Windows computer
   4. Configure the agent to "Launch agent via Java Web Start"
   5. Define the required agent fields (like a remote root directory - I 
   prefer 'C:\J\' to reduce problems with Windows and long paths) and save the 
   configuration of that agent
   6. Download the 'agent.jar' file from the hyperlink on the web page, 
   save it somewhere convenient (like C:\J\agent.jar)
   7. Open a command prompt window on the Windows desktop machine and 
   change to the convenient directory C:\J
   8. Copy the 'Run from agent command line" from the web page into the 
   command prompt window

Thanks for asking!
Mark Waite
 

> I want to run the signtool.exe together with the certificate on a USB 
> token as an AfterPublish job in Jenkins. Jenkins is running as admin. 
> Single sign-on is activated for the USB token. Running signtool.exe in the 
> admin console works, running the same command through Jenkins results in 
> the "No certificates were found that met all the given criteria." error.
>
> Any help is much appreciated. Thank you!
>>
>>

-- 
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/41f90117-e810-4b47-864e-839fc444fb86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: build VC++

2019-05-08 Thread Rich Stephens
Sudheer,

It's pretty straightforward.  On the "Plugin Manager" page, look for 
"MSBuild Plugin".  That one can call MSBuild (part of Visual Studio) to 
build .proj and .sln files.

If you click on the name of the plugin, it takes you to the plugin home 
page, which has some more information about configuring the plugin to point 
to your installation of MSBuild.

This is all, of course, assuming you are running Jenkins on Windows and 
have whatever version of Visual Studio you normally use to build the 
project installed on the same machine that you have Jenkins on.

Rich

On Wednesday, May 8, 2019 at 9:18:40 AM UTC-4, sudheer k wrote:
>
> Hi Team,
>
> I want to build the VC++ applications by using jenkins, can you tell me 
> weather it is possible to build those applications using jenkins.
> because i haven't find any plugins or resources to build the VC++ 
> application.
>

-- 
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/9528ce0d-2691-4150-9841-c09bbb38f37e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


JenKins Logs cannot survive out of tmp folder - Using Audit trial Plug-in -- may be BUG

2019-05-08 Thread Saurabh Jain
Hi All

I am trying to store the logs out of the *tmp folder,* but the system is 
not allowing me for the same.

Example: If I select the tmp folder location, then the log file gets 
created. While in other location no log file can get created by system


[image: image.png]


Request you to kindly check out this BUG

-- 
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/387f578f-b1c4-4211-9ca5-97f1fefd4ef8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


build VC++

2019-05-08 Thread sudheer k
Hi Team,

I want to build the VC++ applications by using jenkins, can you tell me 
weather it is possible to build those applications using jenkins.
because i haven't find any plugins or resources to build the VC++ 
application.

-- 
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/e62cabc6-2165-4fbf-bdd7-74126f7da679%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-05-08 Thread A M
hi Mark

I am struggling with a very similar issue. What exactly do you mean by your 
comment and how do I achieve this?

I want to run the signtool.exe together with the certificate on a USB token 
as an AfterPublish job in Jenkins. Jenkins is running as admin. Single 
sign-on is activated for the USB token. Running signtool.exe in the admin 
console 
works, running the same command through Jenkins results in the "No 
certificates were found that met all the given criteria." error.

Any help is much appreciated. Thank you!
>
>

-- 
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/003a60e6-00ea-4081-866f-e366582b75f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins triggers SCM polling against last successful build on restart

2019-05-08 Thread AndresF
Hi all,

I've come across this strange behaviour:

I have serveral projects configured for SCM polling (Subversion). They work 
well, triggering the build when changes happen on the remote repository. 
Even when the last build is FAILURE, it uses it's SCM revision as a 
baseline for comparing revisions against the remote repository.

However, at Jenkins restart, polling is triggered, but apparently it 
compares against the LAST SUCCESSFUL build of the project. Also, Jenkins 
keeps always the last successful build of every project, regardless of how 
many builds it's configured to keep. 

In projects that fail often, this can lead to comparing to an old revision 
at restart, triggering the build.

Is this really a lack of consistency in the polling mechanism or am I 
missing something?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0c374061-704f-42a2-95f9-31799d1b0976%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Bitbucket Branch Source plugin fails to connect to Bitbucket server on cloud

2019-05-08 Thread Anantha Madhava
Hello Gurus,

I am using Jenkins V2.156 with Bitbucket Branch Source V2.4.2 plugin. 
Jenkins master is within the organization network. 
We have Bitbucket server V5.16.0 on AWS.

When I configure Multibranch Pipeline job with Bitbucket as 'Branch 
Sources', it throws the error - 'selected credentials do not have 
permission to determine whether <> does or does not exist'.

[image: Bitbucket_Branch_Source.png]



However, when I use Git as 'Branch Sources', I do not get this error. The 
job recognizes the new branches created, Pull Requests created (upon 
specifying the refspec for Pull Request). But the Pull Requests build fails 
with the error - 'ERROR: Couldn't find any revision to build. Verify the 
repository and branch configuration for this job.' 

Since both of these approaches use the same Bitbucket Branch Source plugin, 
I wonder why the connection fails in the first approach and succeeds in the 
second approach?

Of the above scenarios, I am keen on getting the Bitbucket as Branch Source 
to a working state. How do I resolve this connection problem?

Regards,
Anantha

-- 
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/b386aa34-6c44-4e5d-9914-3c49d5512a1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ERROR : Unable to find build script

2019-05-08 Thread Ramanathan Muthaiah
On Wednesday, May 8, 2019 at 1:59:02 AM UTC+5:30, Praveen kumar wrote:
>
> Hi 
>
> When I am trying to build the code in Jenkins with SVN by invoking ANT, I 
> am facing the below error
>
> ERROR : Unable to find build script at C:\Program 
> Files\Jenkins\workspace\sampleproject\trunk\build.xml
>
> Finished: FAILURE
>
>
> Please do the needful.
>
>
To me, the intent and the tone of your mail does not indicate one that's 
seeking assistance. 

What have you done to debug the problem before reaching out to this forum?

/Ram

-- 
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/534ae19b-b326-4991-815c-5e5efc7107c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Figuring out what is causing a job failure

2019-05-08 Thread Alexandru Băluț
I see what you mean, but "exit 0" is executed and despite being executed 
the job still fails. See the copy/pasted console log.

On Wednesday, May 8, 2019 at 2:37:01 AM UTC+2, ok999 wrote:
>
> If I remember correctly, the non 0 status of the command is enough to 
> exit. Your exit 0, will not be executed. There is a workaround for that. 
>
> On Tue, May 7, 2019 at 3:28 PM Alexandru Băluț  > wrote:
>
>> I set up a freestyle job which has a single "Execute shell" build step, 
>> and is run on a remote node. The shell script starts some jobs in the 
>> background, then waits for one of them to exit, then kills them all with 
>> "killall -9 jobName || echo dead", then at the end it "exit 0" to signal 
>> success. There are no post build steps. 
>>
>> Despite "exit 0", the job fails. It would be useful if the "FATAL: Remote 
>> call on instance-1 failed" message includes the failure reason.
>>
>> There are some "Also:" stacktraces printed, see below, which don't appear 
>> when the script contains only "exit 0". Do you think these are related to 
>> the failure?
>>
>> How can I find what's causing this failure?
>>
>> --- Console output below ---
>>
>> Started by remote host 1.1.1.1
>> Building remotely on instance-1 (sim) in workspace /path/to/JobName
>> [JobName] $ /bin/sh -xe /tmp/jenkins6599300392607514127.sh
>>
>> [...]
>>
>> + date
>> Mon May  6 13:38:06 UTC 2019
>> + echo Done
>> Done
>> + exit 0
>> FATAL: Remote call on instance-1 failed
>> Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
>>  at 
>> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)
>>  at hudson.remoting.Request.call(Request.java:197)
>>  at 
>> hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:281)
>>  at com.sun.proxy.$Proxy6.fetch3(Unknown Source)
>>  at 
>> hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:209)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:588)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:521)
>>  at java.lang.Class.forName0(Native Method)
>>  at java.lang.Class.forName(Class.java:315)
>>  at 
>> hudson.util.ProcessTree$UnixReflection.(ProcessTree.java:778)
>>  at 
>> hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:726)
>>  at 
>> hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:747)
>>  at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:666)
>>  at 
>> hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1096)
>>  at 
>> hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1087)
>>  at hudson.remoting.UserRequest.perform(UserRequest.java:210)
>>  at hudson.remoting.UserRequest.perform(UserRequest.java:53)
>>  at hudson.remoting.Request$2.run(Request.java:364)
>>  at 
>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>>  at java.util.concurrent.FutureTask.run(FutureTask.java:264)
>>  at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>>  at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>>  at java.lang.Thread.run(Thread.java:834)
>> java.lang.ClassNotFoundException: Classloading from system classloader 
>> disabled
>>  at 
>> hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:854)
>>  at 
>> hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:889)
>>  at sun.reflect.GeneratedMethodAccessor9164.invoke(Unknown Source)
>>  at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:498)
>>  at 
>> hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929)
>>  at hudson.remoting.Request$2.run(Request.java:369)
>>  at 
>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>>  at 
>> org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19)
>>  at 
>> hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
>>  at 
>> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
>>  at 
>> jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
>>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>  at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>  at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>  at java.lang.Thread.run(Thread.java:748)
>> Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to instance-1
>>