Re: Why does somestring.digest('SHA-1') fail in pipeline

2019-05-01 Thread Daniel Beck
> On 1. May 2019, at 02:11, Slide wrote: > > I don't know what version pipeline is using right now. We're on 2.4.x. And as usual, don't (ab)use pipeline as a general purpose programming environment. It's not intended to be, never was. -- You received this message because you are subscribe

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-02 Thread Daniel Beck
> On 2. Aug 2019, at 11:49, Cyrille Le Clerc wrote: > > Do you understand why the downstream pipeline is seen as unauthenticated? > Could there be a configuration glitch on your setup? > My guess, not having debugged this further: Pipeline Maven Plugin seems to have copied code from Revers

Re: Gradle Tool Failed Download

2019-09-23 Thread Daniel Beck
On Mon, Sep 23, 2019 at 2:28 PM Sverre Moe wrote: > ERROR: Failed to download > https://services.gradle.org/distributions/gradle-5.6.2-bin.zip from agent; > will retry from master > > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to reque

Re: Jenkins NON-GUI notification of core / plug-in vulnerabilities / warnings and updates

2019-09-23 Thread Daniel Beck
Jenkins uses the update center metadata to show applicable warnings. It would be a bit of a hack, and use internals not meant for public consumption, but you could do that, too. See the bottom of https://updates.jenkins.io/update-center.actual.json for the warning definitions. (No complaining if we

Re: Jenkins NON-GUI notification of core / plug-in vulnerabilities / warnings and updates

2019-09-24 Thread Daniel Beck
o log only once when a previously unseen warning shows up. Probably best done as a PeriodicWork while keeping a list of warnings logged since Jenkins started, to prevent duplicates? On Tue, Sep 24, 2019 at 3:59 PM Eric Engstrom wrote: > > > On Monday, September 23, 2019 at 11:08:58 AM

Re: Gradle Tool Failed Download

2019-09-25 Thread Daniel Beck
the same JDK, so why would >>>> the gradle installer have a problem? >>>> >>>> I do not like to check in the gradle wrapper files into version >>>> control, but considering it might ease new developers I am beginning to >>

Re: A file read permissions - Jenkins security

2019-10-23 Thread Daniel Beck
ils 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/fc043cad-aa49-4fb6-a552-f2da83c6954c%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-user

Re: Git Commit Message as an Environment Variable

2019-11-19 Thread Daniel Beck
I have a (never released) plugin that integrates with the Jenkins changelog that does something like this: https://github.com/daniel-beck/changelog-environment-plugin If you know enough Maven to build a plugin, this might work. The problem there is that the Jenkins built-in changelog doesn&#

Re: durable-dbed1d4d/script.sh: Syntax error: "(" unexpected

2019-11-27 Thread Daniel Beck
n > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/c5970e0b-4edb-4624-b9fc-5baee2fcbc63%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/c5970e0b-4edb-4624-b9fc-5baee2fc

Re: No valid crumb - scm trigger doesn't work since 2.222 - pull 4509

2020-03-09 Thread Daniel Beck
> On 9. Mar 2020, at 13:06, Stölzer Sven wrote: > > it seems that since version 2.222 the scm trigger doesn’t work. > The requested Crumb form jenkins server was correctly included in the post > commit hook see attachment. It's unclear to me what happened here. If Jenkins was already config

Re: Security for team-specific nodes

2020-03-26 Thread Daniel Beck
> On 25. Mar 2020, at 14:25, Roland Asmann wrote: > > Now, I was wondering if it was possible to configure nodes to be only used by > certain people/groups/jobs/..., or even better, have the UI hide them from > people that are not supposed to use them? > > We are currently using Project-bas

Re: Jenkins is not starting

2020-05-10 Thread Daniel Beck
The configuration references the matrix-auth plugin, but it is disabled or failed to load. > On 10. May 2020, at 16:57, Mai Waly wrote: > > Hi All, > > Please advise what happen as Jenkins is no longer starting and showing error, > there is no gui any more. > > > ay 10, 2020 7:48:13 AM hu

Re: Potential Malware

2020-06-22 Thread Daniel Beck
Thanks for your report. I filed an issue on your behalf in the Jenkins project's private security issue tracker. You should have gotten an email notification from Jira about it. Please provide more information there to help us investigate. > On 22. Jun 2020, at 19:15, Randall Becker wrote: >

Re: Upgrading from 2.164.1 to 2.235.1

2020-06-22 Thread Daniel Beck
del.Hudson.(Hudson.java:81) > > at hudson.WebAppMain$3.run(WebAppMain.java:262) > > Caused: hudson.util.HudsonFailedToLoad > > at hudson.WebAppMain$3.run(WebAppMain.java:279) > > Page generated: > > Jun 19, 2020 7:30:09 PM MDT > Jen

Re: Shell command with (

2020-07-01 Thread Daniel Beck
> On 30. Jun 2020, at 18:27, Jérôme Godbout wrote: > > What the hell is sh is doing? It's not automatically applying your .bash_profile or .bashrc to a standalone script, as such an environment dependency would severely limit the reusability of shell scripts. You need to set the extglob sh

Re: Unauthorized URL redirect via HTTP host poisoning vulnerability with Jenkins

2020-09-25 Thread Daniel Beck
> On 25. Sep 2020, at 23:49, Mohtashim S wrote: > > How do we address this vulnerability of Jenkins? https://www.jenkins.io/security/#reporting-vulnerabilities explains how to report security issues. Please make sure in your report to explain why it is a problem for Jenkins beyond linking

Re: How to access jenkins using ip address remotely ?

2020-10-21 Thread Daniel Beck
> On 20. Oct 2020, at 07:22, Vaibhav Khachane wrote: > > I am trying to access jenkins using ip address but it is not working . I am > using macOS. > > Following jenkins url working fine > http://localhost:8080/ > http://127.0.0.1:8080/ > http://0.0.0.0:8080/ > > but while using ip adress o

Re: How to access jenkins using ip address remotely ?

2020-10-21 Thread Daniel Beck
> On 20. Oct 2020, at 07:22, Vaibhav Khachane wrote: > > I am trying to access jenkins using ip address but it is not working . I am > using macOS. > > Following jenkins url working fine > http://localhost:8080/ > http://127.0.0.1:8080/ > http://0.0.0.0:8080/ > > but while using ip adress o

Re: How to implement to reboot the slave node

2013-06-25 Thread Daniel Beck
Jenkins Enterprise has the VMware Autoscaling plugin that might work for you. http://www.cloudbees.com/jenkins-enterprise-by-cloudbees-features-vmware-auto-scaling-plugin.cb > A very typical example of this functionality is to have Jenkins revert the VM > to the golden snapshot and power on in t

Re: Problems trying delete project

2013-06-27 Thread Daniel Beck
Even an eager virus scanner could cause this issue. FWIW this is the main reason my Jenkins masters are running on Linux. On Windows it was just too annoying, especially with job renames. On 26.06.2013, at 19:56, "Mandeville, Rob" wrote: > I’m guessing that Jenkins is trying to delete a file (

Re: Version Number Plugin question

2013-07-01 Thread Daniel Beck
Try clicking the question mark next to the 'Version Number Format String' text field, the behavior is well documented. > The version number format string is used to generate the version number. It > will be passed through unaltered, except that any expression of the form > ${variable_name, argu

Re: EnvInject Access to Manager

2013-07-02 Thread Daniel Beck
If by 'manager' you mean the object that gives you access to the Jenkins/Hudson instance, the current build, and the build listener, it's specific to Groovy Postbuild and doesn't exist in EnvInject. https://github.com/jenkinsci/groovy-postbuild-plugin/blob/master/src/main/java/org/jvnet/hudson/p

Re: How to announce a plug in update for a "private" plug in?

2013-07-04 Thread Daniel Beck
You can do this using Jenkins Enterprise. It includes a 'Custom Update Center' plugin that can be used to distribute all (or only sanctioned) plugins internally, and also allows distributing your own plugins. http://release-notes.cloudbees.com/product/Custom+Update+Center+Plugin http://jenkins-e

Re: buildflow: node selection

2013-07-05 Thread Daniel Beck
Sounds like the default scheduler behavior. There's some information on how it works, but it's a bit inconsistent: "Try to use the last used node": https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-Schedulingstrategy "Prefer a specific node": http://jenkins-enterp

Re: Read only Configuration plugin

2013-07-05 Thread Daniel Beck
You could also skip the plugin altogether and use -Dhudson.security.ExtendedReadPermission=true as described here: https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties On 05.07.2013, at 20:14, Andrei Ababei wrote: > Hello, > > You are not the only one. I have s

Re: How to announce a plug in update for a "private" plug in?

2013-07-05 Thread Daniel Beck
Thursday, 4 July 2013, Daniel Beck wrote: > You can do this using Jenkins Enterprise. It includes a 'Custom Update > Center' plugin that can be used to distribute all (or only sanctioned) > plugins internally, and also allows distributing your own plugins. > > http://

Re: matrix job axis with parameter

2013-07-08 Thread Daniel Beck
The best I could come up with: try { context.build.buildVariables.collect { k, v -> v } + [ 'fixed' ] } catch (Exception e) { return [ 'fixed' ] } Seems to trigger the correct axes (in my case, the ones named for the parameters' values + one named 'fixed'). Note that the UI seems wrong between

Re: Template Project plugin

2013-07-10 Thread Daniel Beck
In a similar situation I defined one job ("Configuration") that created a .properties file with the relevant options based on job paraemters and archived it as artifact. The other jobs then used the Copy Artifact plugin to get the file ("Copy from last successful build" uses the current option

Re: Template Project plugin

2013-07-10 Thread Daniel Beck
that build parameters are recorded in build histories and the > values will be set before that the SCM step occurs. > > Cheers, > syl20bnr > > Le mercredi 10 juillet 2013 06:16:19 UTC-4, MoBarger a écrit : > I like it! I was thinking about a properties file but never th

Re: Fingerprinting performance

2013-07-11 Thread Daniel Beck
How big are these artifacts? At /threadDump, you can access live stack traces. Maybe look for something fingerprint related during those 5 minutes, it could give you a hint what is taking so long. Copy artifact works without fingerprinting in the source project, but always calculates its own w

Re: Creating a Global View For Use as New Default View

2013-07-16 Thread Daniel Beck
You need to create new views from the home page, not the 'My Views' page. (Click the '+' button in the view tab bar, but you already know that) On 16.07.2013, at 15:54, "Gottfried, Brian" wrote: > I’ve been attempting to change the default view in Jenkins from the “All” > view to a custom vie

Re: Help to find a log parser

2013-07-17 Thread Daniel Beck
Use https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin Look for BUILD_LOG_REGEX in the 'Content Token Reference' of the post-build action. On 16.07.2013, at 23:57, Eduardo Dias wrote: > Hi All, > > I am trying to find an example to get a part of console log based on a regex > to se

Re: SEVERE: The server rejected the connection: SSH-2.0-OpenSSH_5.3

2013-07-17 Thread Daniel Beck
"SSH-2.0-OpenSSH_5.3" is the return message the server sends to the slave when it attempts to handshake. It's part of the error message because it's unexpected, and to give you an idea what's going on. For some reason, on the port the node tries to connect to, an SSH Server is running. It's not

Re: Subversion null pointer exception integrating feature branch

2013-07-18 Thread Daniel Beck
svnmerge plugin relies[1] on behavior of SVNKit that was changed[2]. It can no longer handle a null SVNErrorMessage argument. 1: https://github.com/jenkinsci/svnmerge-plugin/blob/master/src/main/java/jenkins/plugins/svnmerge/FeatureBranchProperty.java#L273 2: https://github.com/jenkinsci/svnkit

Re: Subversion null pointer exception integrating feature branch

2013-07-18 Thread Daniel Beck
... or just vote for or sponsor the existing https://issues.jenkins-ci.org/browse/JENKINS-16723 On 18.07.2013, at 23:28, Daniel Beck wrote: > svnmerge plugin relies[1] on behavior of SVNKit that was changed[2]. It can > no longer handle a null SVNErrorMessage argument. > >

Re: strange heap space

2013-07-19 Thread Daniel Beck
IIRC a few years ago I experienced an issue with very large artifacts being uploaded to an artifact repository. maven-deploy-plugin couldn't handle files larger than one third of the available heap space. On 19.07.2013, at 12:09, Raouf wrote: > Hi there, > > I'm getting a java heap space that

Re: Tying upstream/downstream projects execution nodes by name?

2013-07-21 Thread Daniel Beck
The combination Parameterized Trigger plugin + NodeLabel Parameter plugin might work. The environment variable 'NODE_NAME' stores the name of the node. On 21.07.2013, at 04:59, Olexij Tkatchenko wrote: > How to implement a dynamic selection of a node for downstream project based > on name of

Re: Readonly job parameters

2013-07-21 Thread Daniel Beck
envinject plugin does this. But not visible as 'fake' job parameters. On 21.07.2013, at 15:49, Pete wrote: > No, that I am aware of. I've been kind of thinking about something similar > but more of like a set of variables that can be defined with the job, and > then referenced in multiple pla

Re: Readonly job parameters

2013-07-22 Thread Daniel Beck
An actual use case for this might be helpful. Right now, this looks a lot like an XY problem [1]. Also, a possible solution is a Choice parameter with only one value to select. But note that e.g. Parameterized Trigger will just override this when you specify a different value there, so it's on

Re: Including changelog

2013-07-22 Thread Daniel Beck
You could use emailext to record changes in the actual build: 1. Create an email with the changes on build success, and check to store the email in the workspace ("Save Generated E-mail to Workspace"). Not sure whether you need actual recipients if you check that option. 2. Copy that with the bui

Re: [1.509.2 LTS] Job changing oprations take ages to finish

2013-07-23 Thread Daniel Beck
Try accessing /threadDump in another browser tab while it's saving, and search for '/configSubmit' -- it'll give you an idea why it takes so long. I was experiencing a similar issue a few days ago. Are you using Job Config History plugin, maybe Copy Artifact plugin as well? There's a bug in Copy

Re: Alter/Remove "All" view in "My Views"

2013-07-26 Thread Daniel Beck
> The strange thing is that people seem to be able to access "Configure" > only when being an Admin user. "Normal" users aren't allowed to do so > (we're running 1.509.2 LTS). I just set up a 1.509.2 test instance from scratch. My 'reader' user (permisisons Overall/Read, Job/Read when using Matri

Re: Reconfiguring JDK oracle account/pass

2013-07-27 Thread Daniel Beck
You could try changing it where you first set it: http://hostname/descriptorByName/hudson.tools.JDKInstaller/enterCredential On 27.07.2013, at 17:38, mylif...@gmail.com wrote: > Does anyone know of a way to reconfigure the oracle account/pass combination > when adding JDKs automatically via the

Re: Block upstream parameterized jobs, but don't trigger a new job?

2013-07-29 Thread Daniel Beck
You could also set up slave nodes specific to these jobs and give them only one executor each, preventing parallel execution of jobs. I've been using this approach for more than two years on a number of systems for preventing parallel executions of tools that couldn't handle that. On 29.07.2013

Re: Log message missing correct SVNExternalDetails.toString() information

2013-07-31 Thread Daniel Beck
This was fixed a month ago in the Subversion plugin: https://github.com/jenkinsci/subversion-plugin/commit/5dce1f171869ade40d3558dc187a1cdf246f3d32 No release since, so you could use a snapshot build to fix it in your Jenkins. On 31.07.2013, at 16:52, Hartmut Kühn wrote: > Hi all, > > I don’

Re: Plugin installation by hand doesn't work

2013-08-01 Thread Daniel Beck
What's in the log (/var/log/jenkins/jenkins.log probably)? Did you get the permissions of the files right? On 01.08.2013, at 18:13, Avihay Eyal wrote: > Hi, I copied mercurial and xunit hpi files to /var/lib/Jenkins/plugins as a > manual installation (I'm working in a private network - no acce

Re: Jenkins multi-configuration project

2013-08-01 Thread Daniel Beck
You have no slaves, so there's no reason to present this option (or 'Label expression'). On 01.08.2013, at 20:02, Laura McCord wrote: > I have been looking at examples on setting up multi-configuration projects. > What I have seen is the use of "Slave axis" under the Configuration Matrix > bu

Re: Newbie question: Build Flow Plugin and Multiple Nodes

2013-08-01 Thread Daniel Beck
AFAICT your syntax is wrong. From the Wiki: parallel ( // job 1, 2 and 3 will be scheduled in parallel. { build("job1") }, { build("job2") }, { build("job3") } ) Note the extra braces. That's probably why it's not actually parallel. The build flow itself is "lightweight", which means

Re: Newbie question: Build Flow Plugin and Multiple Nodes

2013-08-01 Thread Daniel Beck
7;j3') }) ... which builds three jobs in two 'lanes', j1 before j2. On 01.08.2013, at 20:26, Daniel Beck wrote: > AFAICT your syntax is wrong. From the Wiki: > > parallel ( > // job 1, 2 and 3 will be scheduled in parallel. >{ build("job1") },

Re: CI usability - isn't there a problem that tests are executed only after a developer pushed his changed to the repsitory?

2013-08-01 Thread Daniel Beck
There's a commercial plugin that does this if you're using Git: http://www.cloudbees.com/jenkins-enterprise-by-cloudbees-features-validated-merge-plugin.cb Developers push to Jenkins' repository, and if that's successful, Jenkins pushes to your actual repo. On 01.08.2013, at 09:16, Avihay Eyal

Re: Jenkins server will not start after upgrade to 1.524 or 1.525, would appreciate any help.

2013-08-04 Thread Daniel Beck
See e.g. https://issues.jenkins-ci.org/browse/JENKINS-18922 https://issues.jenkins-ci.org/browse/JENKINS-19000 Did you disable bundled plugins, like e.g. the Maven plugin? On 04.08.2013, at 23:15, Stuart Whelan wrote: > Hi folks, > > I was/am running 1.522 on a windows server 2008R2 64bit sy

Re: Build Flow DSL parallel

2013-08-05 Thread Daniel Beck
Read the exception carefully: It's simply a typo in 'paralllel'. Please also consider providing a actual, complete, minimal example next time. The syntax errors in what you called "snippet" were a bit confusing. For reference, the following complete DSL works like a charm ('empty' and 'empty2'

Re: Automatically creating a job inside a folder

2013-08-06 Thread Daniel Beck
Try http://jenkins/job/foldername/createItem. On 06.08.2013, at 17:17, Jacob Schlather wrote: > I'm working on a script right now to create a new job whenever a new branch > is added to our git repo. I have the python code that will post a job, but I > would like to post a job inside a folder

Re: Cancel a Queue via Jenkins API

2013-08-06 Thread Daniel Beck
Send a POST request. https://en.wikipedia.org/wiki/POST_%28HTTP%29 How this works depends on how you send the requests in the first place. Example using the `curl` command line program: curl --data '' 'http://jenkins/queue/cancelItem?id=65' `--data` causes the request to be sent as POST, '

Re: Automatically creating a job inside a folder

2013-08-06 Thread Daniel Beck
Still disabled? On 06.08.2013, at 21:05, Jacob Schlather wrote: > Great. That worked. > > Do you by chance know why my jobs would spawn as disabled rather than enabled? > > On Tuesday, August 6, 2013 2:59:18 PM UTC-4, Daniel Beck wrote: > Try http://jenkins/job/foldername/cre

Re: Checkstyle apparently totally broken

2013-08-06 Thread Daniel Beck
According to the wiki [1, 2], Maven plugin is an _optional_ dependency of both Checkstyle and its (only, besides Ant) mandatory dependency, Analysis Core. Is this information correct? So far, JENKINS-18922/19000 seemed to only happen when missing mandatory dependencies, like jobConfigHistory ->

Re: hopefully simple pipeline question

2013-08-06 Thread Daniel Beck
You could use the parameterized trigger plugin and use the build step as the first action in the upstream build. That way, B will be queued before A polls SCM again. If necessary, add a Quiet Period to A in its advanced project options for the time it takes A to check out from SCM (or rather, t

Re: Is there a way to make "discard old builds" happen right now?

2013-08-07 Thread Daniel Beck
What version of Jenkins are you using? On 07.08.2013, at 06:24, David Vree wrote: > This worked for me except for one thing. In a multi-module Maven project the > child modules still have all their builds on the filesystem, even though they > are gone in the UI. > > On Friday, October 7, 201

Re: User account considered for execution

2013-08-07 Thread Daniel Beck
You configured authentication to the Jenkins UI. It has nothing to do with the user account jobs are run as, which is the same account who is running Jenkins' java process. If you installed it as a service on Windows and didn't change it in Computer Management, Jenkins is running as SYSTEM. As

Re: Checkstyle apparently totally broken

2013-08-07 Thread Daniel Beck
s the problem I guess. >> >> On Tue, Aug 06, 2013 at 09:37:46PM +0200, Daniel Beck wrote: >>> According to the wiki [1, 2], Maven plugin is an _optional_ dependency of >>> both Checkstyle and its (only, besides Ant) mandatory dependency, Analysis >>> Cor

Re: Build Flow Plugin - reporting capability

2013-08-07 Thread Daniel Beck
Build flows are arbitrary Groovy code (hence JENKINS-16980, which will break this solution if ever properly implemented). So just add log parsing and such to the end of your build flow. The following minimal example takes the current build's log so far, and writes it into a file in a new folder

Re: Jenkins + UiAutomator Always Green

2013-08-07 Thread Daniel Beck
Jenkins marks a build as failed if a shell script step returns an error exit code (anything but 0). Failing tests aren't errors in the test executor, so these calls probably return 0 (successful), and are interpreted by the shell as such. You need to parse the output in some way, and, if it mat

Re: Slow loading and large memory usage after 1.480.3 to 1.509.2 migration

2013-08-07 Thread Daniel Beck
This could be the following issue, that'll be fixed in 1.509.3: https://issues.jenkins-ci.org/browse/JENKINS-16023 On 07.08.2013, at 12:48, Christopher Tarento wrote: > Hello guys, > > I used to run a Jenkins server with about 10 jobs with full history (~ 500 > builds). > Debian Wheezy > Open

Re: Problem with build from Checkout Strategy

2013-08-07 Thread Daniel Beck
Anything interesting in the build logs when this occurred? How do you know the file wasn't updated, did you view the file in the workspace? On 07.08.2013, at 21:50, DAVID HO wrote: > Hi all, > > I am very new to Jenkins and also to the build process. I have just started > using Jenkins at my

Re: Remove a Queue item through a Groovy script

2013-08-07 Thread Daniel Beck
There is no output. It just sends a redirect to the referer location. In your case. that's undefined, which probably causes it to fail this way. Just ignore any non-error response (or at least, any redirects). On 07.08.2013, at 23:04, tiago fernandez wrote: > Hello, > > I want to cancel a Qu

Re: Build Flow Plugin - reporting capability

2013-08-07 Thread Daniel Beck
(i.e. the master node keeps > the history)? I have no clue if that is even possible... > > Sorry for all these newbie questions. > > Thanks, > > Bob > > -Original Message- > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com

Re: hopefully simple pipeline question

2013-08-07 Thread Daniel Beck
ine. Not a deal breaker, but I could see > this being pretty annoying. > > > On Wed, Aug 7, 2013 at 10:39 AM, Mishael Kim wrote: > Great idea. Thanks, that sounds like it would work! > > > On Tue, Aug 6, 2013 at 2:28 PM, Daniel Beck wrote: > You could use the

Re: [POLL] how addicted are you to the current Subversion plugin's authentication model?

2013-08-08 Thread Daniel Beck
This would be really awesome. Right now, credentials handling in Subversion plugin is rather intransparent. Reusing known credentials (unless they're a repo's default) isn't easy either. HOWEVER this needs a better upgrade path than SSH credentials. I can deal with a dozen duplicates of the sam

Re: Jenkins + UiAutomator Always Green

2013-08-08 Thread Daniel Beck
uot;$( grep 'Test failed' > tmp.log )" ]] ? > > On Wednesday, 7 August 2013 15:31:16 UTC-4, Daniel Beck wrote: > Jenkins marks a build as failed if a shell script step returns an error exit > code (anything but 0). > > Failing tests aren't errors in the test execu

Re: enhancement: allow setting of common/global parameters via API

2013-08-08 Thread Daniel Beck
What are you actually trying to accomplish? I mean, if you're starting with a fresh instance (or at least set most of the settings) anyway, what's wrong with checking it out from SCM, rsyncing, or cloning a template VM? On 08.08.2013, at 22:51, J Arrizza wrote: > I currently have a set of scri

Re: cronjob monitoring question

2013-08-11 Thread Daniel Beck
Don't use Jenkins to schedule it, but actually use cron. If Jenkins is available, you can send the logs and result to it using the 'monitor external job' job type. On 11.08.2013, at 17:26, rmorgan...@gmail.com wrote: > if the jenkins server is down my cronjob won't run. Is there a way for the

Re: Set limit on number of threads

2013-08-11 Thread Daniel Beck
Check out http://yourjenkins/threadDump -- the threads mostly have nice names that explain what they're for. Maybe you have some success changing --handlerCountStartup if you're using winstone (http://winstone.sourceforge.net/#commandLine) to reduce the number of initial request handlers. On 1

Re: How to run a build step from the master and not the slave?

2013-08-11 Thread Daniel Beck
Instead I'd try to download it to the job's WORKSPACE on the slave during the build and run it from there, if possible. On 12.08.2013, at 08:19, Avihay Eyal wrote: > Hi, I have a job running on a dedicated slave. This job should run unittests > and regression tests via robot framework. > > Th

Re: Why is my Jenkins logging in german?

2013-08-12 Thread Daniel Beck
Is there anything language-related in /systemInfo or /computer/slavename/systemInfo, e.g. in environment variables? On 12.08.2013, at 11:21, Steffen Breitbach wrote: > And how do I stop it? > > Hi everyone! > > Jenkins os logging in german, mostly events related to slaves. Here are > some exa

Re: Why is my Jenkins logging in german?

2013-08-13 Thread Daniel Beck
sages are available in German as well. On 13.08.2013, at 10:14, Steffen Breitbach wrote: > Hi Daniel! > > On Mon, 2013-08-12 at 19:55 +0200, Daniel Beck wrote: >> Is there anything language-related in /systemInfo or >> /computer/slavename/systemInfo, e.g. in environment var

Re: Conditional buildstep plugin regex match not working as expected?

2013-08-13 Thread Daniel Beck
There are essentially two options, let's call them 'match' and 'search': - Match: Check for exact match (essentially `equals`), and require expression to be wrapped in "any sequence of characters" using `.*` if you want to search instead. - Search: Only check presence of the search expression an

Re: Help with Windows slave configuration

2013-08-13 Thread Daniel Beck
Create a job. Enter the Windows node's name as 'Label expression' after you check 'Restrict where this project can be run'. For build steps, use something Visual Studio specific, or start with a 'Execute Windows batch command' builder. Now this job will run on your Windows node and execute you

Re: Help with Windows slave configuration

2013-08-14 Thread Daniel Beck
.java:19) > > at > hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) > > at > hudson.model.Build$BuildExecution.build(Build.java:199) > > at > hudson.model.Build$BuildExecution.doRun(Build.java:160) > >

Re: Checkstyle apparently totally broken

2013-08-14 Thread Daniel Beck
> at > org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) > at > org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) > at > org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) >

Re: How to send an email summarizing few projects (chained together)?

2013-08-14 Thread Daniel Beck
Your syntax is wrong (while the linked thread got it right). Quoting the first line in the 'Content Token Reference' (which should probably be bold and blinking): > All arguments are optional. Arguments may be given for each token in the form > name="value" for strings and in the form name=valu

Re: How to send an email summarizing few projects (chained together)?

2013-08-15 Thread Daniel Beck
t; } > %> > > <% > if(upstreamBuild != null) { >// now do stuff with that upstream build >} > %> > > On Thursday, August 15, 2013 9:42:38 AM UTC+3, Daniel Beck wrote: > Your syntax is wrong (while the linked thread go

Re: SECURITY-47 with xpath

2013-08-16 Thread Daniel Beck
Not sure what the problem is with text() either, but both were changed in the same commit -- the advisories are probably just incomplete regarding impact on API users: https://github.com/jenkinsci/jenkins/commit/0de3e9b14ed75f70279435e78eb9f6a3a1a179df Unfortunately JENKINS-16936 is still open,

Re: Prevent job from when a particular job is running

2013-08-19 Thread Daniel Beck
Yes, it's the number of executors. Of course, this requires jobs a and b to run on the same node, and prevents jobs c, d, ... from running on that node (or they'll block/be blocked by a and b). On 19.08.2013, at 18:35, Jared Griffith wrote: > Isn't there already a native configuration option t

Re: How to download plugins from Linux shell

2013-08-19 Thread Daniel Beck
You could create a custom jenkins.war that bundles the plugins you want in the versions you want. https://wiki.jenkins-ci.org/display/JENKINS/Bundling+plugins+with+Jenkins On 19.08.2013, at 19:31, Christopher Carlson wrote: > Is it possible to download plugins using a bash shell script? > > O

Re: Set Jenkins slave system home directory to something other than $HOME

2013-08-20 Thread Daniel Beck
Go to http://jenkins/computer/slavename/configure and change 'Remote FS root'. Make sure no two slaves use the same one. You can still use a shared directory in the $HOME for tools etc -- you could define an environment variable TOOLS_DIR that points there, and use it in the job scripts. There'

Re: Set Jenkins slave system home directory to something other than $HOME

2013-08-20 Thread Daniel Beck
Of course, I didn't intend this to mean 'the strings configured here must be unique among all slaves'. Just, you know, different directories. It doesn't help to use different paths and have symlinks and mount points result in two slaves sharing the same directory either. On 20.08.2013, at 21:58

Re: Extra "Build with Params" menu ... where is it coming from?

2013-08-23 Thread Daniel Beck
'Build with Params' in the plugin. You can see it in the breadcrumb trail in the plugin screenshot. Here's the corresponding source: https://github.com/jenkinsci/build-with-parameters-plugin/blob/master/src/main/java/org/jenkinsci/plugins/buildwithparameters/BuildWithParametersAction.java#L63 'Bu

Re: "Build after other projects are built" question

2013-08-26 Thread Daniel Beck
'Build after other projects are built' is actually stored in the _triggering_ job as a post-build action. Check the config.xml's of the triggering and triggered jobs. It's just a UI trick that you're able to configure this from the downstream job. Any of the following will cause a job's templat

Re: "Build after other projects are built" question

2013-08-26 Thread Daniel Beck
t the downstream > job never get triggered? Why would it work sometimes but not others? > > -Original Message- > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Daniel Beck > Sent: Monday, August 26, 2013 3:34 PM > To: jenkin

Re: Getting Error while trying to rebuil a project in Jenkins...

2013-08-27 Thread Daniel Beck
Try to update rebuild plugin to version 1.15. https://wiki.jenkins-ci.org/display/JENKINS/Rebuild+Plugin#RebuildPlugin-Version1.15%28Oct12%2C2012%29 On 27.08.2013, at 13:11, Manjunath DG wrote: > Hello! > > Hello! > I'm getting following below error while trying to rebuild a project,This is >

Re: job level permissions not taking precidence over global permissions

2013-08-29 Thread Daniel Beck
This is desired behavior in Project-based Matrix security. Try adding a user/group with no permissions on a specific job. This no-op entry will simply disappear when saving. Permissions granted globally cannot be revoked on specific jobs using this security strategy. You could use Role Strategy

Re: rsync instead of archiving?

2013-08-29 Thread Daniel Beck
You could trigger the test/coverage build using Parameterized Trigger plugin, specifying the node name and workspace path the compilation ran on (i.e. the rsync source host and folder) as parameters. If you're using host names for node names, you're done, otherwise, you need to do a little mapp

Re: Updated free cloubbees folders plugin, now folders don't appear, NoClassDefFoundError in log.

2013-09-03 Thread Daniel Beck
On 03.09.2013, at 20:26, "Haszlakiewicz, Eric" wrote: > Suggestions of what to try to fix this would be appreciated. Try downgrading the folders plugin. They changed something related to RBAC that might cause this: http://release-notes.cloudbees.com/release/Folders/3.10 -- You received this

Re: Job Parameters used in Build Steps question

2013-09-16 Thread Daniel Beck
Use a simple script (e.g. Windows batch) build step instead. Then you'll have full control over your build tool invocation. On 16.09.2013, at 23:01, Bob Bick wrote: > Hi, > > Our Jenkins jobs have various command line parameters which apply to various > build steps. Some build steps (e.g. To

Re: Build Flow Plugin and artifacts management in the DSL

2013-09-19 Thread Daniel Beck
On 19.09.2013, at 20:47, nicolas de loof wrote: > it's just about using the adequate jenkins API > Jenkins.instance.getItemByFullName("job").scheduleBuild(...) Let's make this into a real example. Execution of two other jobs (in parallel even) below, plus copying their artifacts, all within a G

Re: Jenkins using wrong JDK

2013-09-20 Thread Daniel Beck
Known issue: https://issues.jenkins-ci.org/browse/JENKINS-17373 On 20.09.2013, at 18:31, Geoff Cummings wrote: > You will only see the JDK list box in the job config if you have more > than one JDK installation configured in your main jenkins config page > > On 20 Sep 2013, at 17:16, Les Mikese

Re: Jenkins (UnitTest with xUnit Plugin)

2013-09-21 Thread Daniel Beck
Did you specify a pattern relative to the workspace root where the plugin can find your test reports? If so, di you verify that your pattern actually matches the location where the files are created? On 21.09.2013, at 16:16, sagar g wrote: > Hi All, > > I am a scala developer i am using SBT B

Re: Jenkins Automatically Deleting Build Logs

2013-09-23 Thread Daniel Beck
Did you rename these projects since the last Jenkins restart? https://issues.jenkins-ci.org/browse/JENKINS-18678 On 23.09.2013, at 12:42, Manjunath DG wrote: > > Hi All, > There are three projects for which Jenkins is automatically deleting the logs > despite the fact settings are otherwise,

Re: Can't hg clone my Kiln repository from Jenkins running on Ubuntu

2013-09-24 Thread Daniel Beck
I'm not sure about Mercurial specifically, but it's complaining about the _host_ key. Run some hg command against that repo from the Jenkins node interactively once, you'll probably be prompted to confirm the host key fingerprint. This'll get stored in ~/.ssh/known_hosts for future executions.

Re: Problem creating view programatically

2013-09-25 Thread Daniel Beck
It helps if you mention the Jenkins version. On 1.509.3, the following works: def listView = new ListView("my-view", Jenkins.instance) listView.includeRegex = "pattern" listView.includePattern = java.util.regex.Pattern.compile("pattern") Jenkins.instance.addView(listView) Jenkins.instance.save()

  1   2   3   4   5   6   7   8   9   10   >