Re: Copy Artifacts: Difference between "Latest successful build" with and without "Stable build only" checked?

2022-01-04 Thread Simon Richter

Hi,

On 1/4/22 10:55 AM, 'Dirk Heinrichs' via Jenkins Users wrote:

as the subject says, what's the exact difference? The documentation 
doesn't tell.


A "successful" build has a result of either STABLE or UNSTABLE, while a 
"stable" build needs a result of STABLE.


Typically a test step would notice failing test cases and then demote 
the result to UNSTABLE, but artifacts would be archived normally as the 
build itself succeeded.


Copy Artifacts then allows you to ignore builds with failing test cases 
when selecting the artifact version to copy, but it is up to the 
providing project to translate the test status into a build status.


   Simon

--
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/ec7b8a82-7962-d55f-06b2-fe6bf9ae6a3b%40hogyros.de.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Parallel pipeline and Stage View

2020-02-29 Thread Simon Richter
Hi,

Am 23.02.2020 um 04:40 schrieb Jan Monterrubio:

> The blue ocean plugin might be able to give you the view that you want.
> In my experience, the vanilla pipelines just append Columns to a table. 

That would be fine and close to what I want, but the really annoying
thing is that rows get hidden if they don't have the same column order
as the row from the currently executing job, and parallel execution
causes exactly that to happen.

   Simon

-- 
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/d88a5995-51d6-ba8c-011a-c021d4127c40%40hogyros.de.


signature.asc
Description: OpenPGP digital signature


Parallel pipeline and Stage View

2020-02-22 Thread Simon Richter
Hi,

I have a rather simple meta-pipeline:

pipeline {
parameters {
string(name: 'PATCH_URL', defaultValue: '', description:
'URL of a patch file to download and apply')
}
agent none
stages {
stage('Build Configurations') {
parallel {
stage('Linux') {
agent none
steps {
build job: 'linux-kicad-patch', \
parameters: [ \
string(name: 'PATCH_URL', \
value: "${PATCH_URL}") ], \
propagate: true, \
wait: true
}
}
stage('Windows MSYS2') {
agent none
steps {
build job: 'windows-kicad-msys2-patch', \
parameters: [ \
string(name: 'PATCH_URL', \
value: "${PATCH_URL}") ], \
propagate: true, \
wait: true
}
}
stage('Windows MSVC') {
agent none
steps {
build job: 'windows-kicad-msvc-patch', \
parameters: [ \
string(name: 'PATCH_URL', \
value: "${PATCH_URL}") ], \
propagate: true, \
wait: true
}
}
}
}
}
}

This should build the three downstream projects with the same
parameters, in parallel.

The stage view shows four stages after starting a build shows four stages:

 - "Build Configurations" (done after 295ms)
 - "Windows MSVC" (done after 0ms, paused for 0ms)
 - "Windows MSYS2" (done after 0ms, paused for 0ms)
 - "Linux" (in progress, with increasing stage time)

Ideally, it wouldn't show the "outer" stage at all, and display the
three "inner" stages as "in progress" at the same time. Is that possible?

   Simon

-- 
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/87b628c5-e98c-bae8-182f-7790ceb2e19c%40hogyros.de.


signature.asc
Description: OpenPGP digital signature


Defining pipeline steps that require cleanup

2020-02-21 Thread Simon Richter
Hi,

I'm thinking about optimizing artifact transfer between builds by using WIM
files instead of single file transfers.

Building would work by mounting an empty writeable WIM file over an output
directory, having the build process install into this directory, then
unmount and optimize the WIM file before declaring it as an artifact.
Artifact consumers would mount the file read-only.

Obviously, if something goes wrong, the file needs to be unmounted
regardless, so I wonder how I'd set up an, ideally declarative, pipeline
that mounts an image that is then available to a block of steps, and
unmounted afterwards using a method that depends on the current build
status.

As an additional complication, making the pipeline resumable would require
something like automatically unmounting images when execution is stopped
after the current step, and remounting if it should continue.

Can this be done, or will I have to extend the actual Jenkins program for
that?

   Simon

-- 
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/20200221113313.GA16649%40psi5.com.


Splitting/Merging/Clustering JUnit test results?

2020-02-14 Thread Simon Richter
Hi,

I have a matrix job that in each leaf runs the test suite twice, once
normally and once with memory checking enabled, each of which generates
an XML file that can be parsed with the JUnit parser.

Now I'd like to present the results in the overview in a useful way:

1. separate normal/memcheck runs from the same build
2. merge results from different cells of the matrix
3. if tests fail only in some configurations, try to cluster by label

Problems:

1. I have the JUnit plugin parse both generated XML files, but only the
normal test run (...)shows up in the result
summary, not the memory checker (...).

2. Test results are only available inside the matrix configurations, no
summary is available

3. I haven't looked at yet, since I need result merging first.

   Simon

-- 
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/84d3400f-994a-1ec8-d1ca-58eef6042001%40hogyros.de.


signature.asc
Description: OpenPGP digital signature


Re: Jenkins docker not found

2020-02-05 Thread Simon Richter
Hi,

On Wed, Feb 05, 2020 at 07:44:57AM -0800, adrian lee wrote:

> however, it keeps throwing me an error
> 
> ```
> + docker ps
> /var/lib/jenkins/workspace/openFaaS_getdata@tmp/durable-270f2b11/script.sh: 
> line 1: docker: command not found
> 
> ```

> I tried referencing other posts on stack overflow but could not find what 
> is wrong. 

That is the same problem I'm having: the plugin responsible for handling
"agent { docker ... }" and "agent { dockerfile ... }" uses the Docker CLI
instead of the Docker API, so the "docker" program must be in the search
path.

There was a proposed fix[1] for that, but it seems that is dead.

What I'm doing now, until someone makes a better suggestion, is to build a
derived Jenkins container that adds the "docker" CLI tool to the image
using wget, and limit all builds to run on master so the tool is available.

Since the actual build happens inside a fresh container anyway, the only
annoying thing about this is that the build counts against master's
executors.

   Simon

[1] https://github.com/jenkinsci/docker-workflow-plugin/pull/195

-- 
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/20200205171925.GA8541%40psi5.com.


Best Practices for Dockerfile in repository

2020-02-05 Thread Simon Richter
Hi,

Looking at https://jenkins.io/doc/book/pipeline/docker/#dockerfile , I've
set up a repository for our project with a Dockerfile to describe the build
environment, and a simple Jenkinsfile describing the build:

pipeline {
agent {
dockerfile true
}
stages {
stage('Build') {
steps {
sh 'make'
}
}
}
}

To make this build correctly, I had to install Docker CLI inside the
Jenkins container and give Jenkins access to control Docker.

The latter is kind of obvious, and Jenkins already had that access in order
to spawn agents as required, but I'm wondering if it makes sense to require
the Docker CLI, as I have to make sure it is present on whatever agent
builds the project, so the assertion in the documentation that it is only
Windows and MacOS agents that would have trouble running such a pipeline is
a bit bold.

I can certainly work around that, so I'm wondering what is the best
approach:

 - continue to build a derived image for Jenkins, adding the Docker CLI as
   a statically linked executable, and limit execution of Docker pipelines
   to master
 - set up a single agent that has the Docker CLI installed, give it an
   appropriate label, and use that
 - use the Docker cloud plugin to create agents on-demand that have the
   Docker CLI installed, and use these to build the pipeline (so a single
   build creates two containers).

There was a pull request[1] that eliminates the need for Docker CLI to run
a pipeline with 'agent { dockerfile true }', but it has been closed.

What would be the most sensible option to build a project like this from a
Jenkins instance that is itself running inside a Docker container?

Is there a readymade image of jenkins/jenkins:lts plus the Docker CLI, or
jenkinsci/slave:latest plus the Docker CLI, or do I have to build and
maintain these myself?

   Simon

[1] https://github.com/jenkinsci/docker-workflow-plugin/pull/195

-- 
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/20200205111953.GB6800%40psi5.com.


Re: JNLP agent and proxy

2020-01-23 Thread Simon Richter
Hi,

On Thu, Jan 23, 2020 at 11:23:22AM -0700, Jeff Thompson wrote:

> If you click that, one option that becomes visible is "Tunnel
> connection through". This *might* work for you. Read the inline help
> and try it to see if it meets your needs.

Perfect, that seems exactly like what I need. I'll see whether it works
after the current long-running build completes. :)

   Simon

-- 
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/20200123183315.GC3820%40psi5.com.


JNLP agent and proxy

2020-01-23 Thread Simon Richter
Hi,

I'd expect this to be somewhat obvious, but it doesn't seem to be: I have a
JNLP agent on a Windows VM that should talk to the Jenkins master on
another VM in the same network. The Jenkins master has a standard nginx
proxy before it to allow external requests to come in.

The agent now connects to the proxy, requests connection information,
receives the port number and connects to the proxy's IP address with the
port number it received from the master.

Obviously this fails because the proxy does not forward the internal agent
ports (these are not supposed to be externally visible).

Is there a way to let the Jenkins master hand out not only the port number
but also the correct IP address to agents (after all, being run behind a
proxy seems to be a very common use case to the extent that the public URL
is configurable)?

   Simon

-- 
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/20200123125926.GA3820%40psi5.com.


Re: Windows JNLP agent doesn't see PATH

2020-01-20 Thread Simon Richter
Hi,

On Mon, Jan 20, 2020 at 04:55:40AM -0800, Vitaly Karasik wrote:

> I see really weird behaviour on my Windows (Windows Server 2019) Jenkins 
> agent (launched by JNLP).

I can't claim to have understood Windows agents' environment handling yet,
but it seems that the entire environment is frozen in the state the agent
had when it was first connected (i.e. saved then, and restored from the
master whenever the client reconnects).

Deleting and readding the agent seemed to help for me (use the same agent
name so it generates the same secret), this will refresh the environment
variables from the client.

   Simon

-- 
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/20200120142245.GA12625%40psi5.com.


Re: Jenkins with Parallel Builds?

2020-01-15 Thread Simon Richter
Hi,

On Wed, Jan 15, 2020 at 02:38:26PM +, David Aldrich wrote:

> We build large C++ projects using Jenkins for Linux platforms.  These build
> jobs currently run on a single executor.  I want 'make -j' or ninja to
> compile concurrently on several cores to speed up the build time.  How can
> I cause a job to utilise multiple executors on an agent in this way?

If you want to go for a 1:1 executor to CPU mapping, then using -j inside
the build and combining it with the Heavy Job plugin to allocate more CPUs
is indeed the way to go.

The downside is that it will wait until that many executors are available,
and IIRC there is an anti-starvation mechanism that also blocks other jobs
from executing on the chosen node.

Depending on your setup, you might as well have the best result with a
setup like "four executors, and all jobs use "-j$((($(nproc)+3)/4)" or
something similar.

For the most flexible result, I suggest defining an environment variable in
the agent config that defines the -j option to be used on that node, then
you have both the number of executors and the number of threads per
executor in the agent config, and if you see that it doesn't work
optimally, you can tune there.

Two or four CPUs per executor are good if you have many builds, while two
or four executors with half/quarter of the CPUs each are good if you build
a massive project seldom.

The Heavy Jobs plugin is for mixing strategies -- e.g. you'd define a -j4
job for incremental builds that run quickly either way except if there is a
big change, and a heavyweight job that takes over half the node for the
daily full rebuild/warning generation/... task.

   Simon

-- 
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/2020011514.GA23937%40psi5.com.


Re: several issues

2019-11-26 Thread Simon Richter
Hi,

On Mon, Nov 25, 2019 at 06:30:36PM -0800, Peter wrote:

> Issue3: Never succeeded in installing a jenkins Agent as a Windows service. 

The way I did it:

 - start agent in JNLP mode once, wait for it to download and initialize
 - shut down agent
 - open a cmd.exe with Administrator privileges
 - go to agent directory, run "jenkins-slave.exe install"
 - adjust service configuration in Microsoft Management Console

> Issue5: Remoting disconnects early when it is started as Client/Agent on 
> Windows(7/10) when IPv6 privacy extensions have been enabled. How can i 
> configure Remoting to use the 'prefered' IPv6 address as source address 
> when it connects to the jenkins server, instead of the actual/temporary 
> privacy IPv6 privacy address?

Outgoing connections should automatically select the currently preferred
address, but PE generates a new preferred address every twenty minutes and
then lets the old one expire after a while. It might help to increase the
expiry time, but long-running connections and Privacy Extensions generally
don't mix well.

   Simon

-- 
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/20191126115813.GB23319%40psi5.com.


Re: Secure Jenkins URL

2019-10-18 Thread Simon Richter
Hi,

On 16.10.19 17:03, Veera Mani wrote:

> How to setup the jenkins URL  to https?
> I am looking to use the jenkins  tool in internal network , but still 
> would like to have it  secure ?

It can be done, but it is a major hassle to set up:

 - the certificate needs to be generated and signed externally, then
converted to a Java keystore and passed into Jenkins from the command line
 - ports below 1024 are privileged and not accessible unless running
with system privileges, which would expose a wide attack surface.

Both of these can be worked around and automated to some extent, but it
is usually easier to run Jenkins unencrypted on an unprivileged port,
listening to connections on 127.0.0.1 only so it is not reachable from
other hosts (for extra security, add a firewall rule for 127/8), and
then configure nginx as a proxy, which allows you to use existing
infrastructure for SSL-in-nginx deployments.

Jenkins is prepared for this mode of operation, with a "base URL"
setting in the global configuration.

   Simon

-- 
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/a0bf0231-cc04-a42c-5ed1-4979168f09b3%40hogyros.de.


signature.asc
Description: OpenPGP digital signature


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

2019-09-06 Thread Simon Richter
Hi,

> > Because the code signing tool requires interaction with the desktop, it 
> > requires that you must be logged in (or at least that is my theory).  There 
> > are techniques to configure processes to run without being logged in, but 
> > they all tend to leave the process with no access to the desktop or limited 
> > access to the desktop.

Sorry I'm late to the party. We use signtool just fine without a Desktop
login.

The important bit is that the Jenkins service needs to run as the user that
installed the certificate to the certificate store. Code signing
certificates are personal certificates, so they are attached to the user
account.

I've created a separate user for Jenkins, logged in as that user, installed
the certificate to the user's certificate store and then configured to run
the Jenkins service as that user.

The service does not need Desktop access (in fact that is suboptimal, as
some errors during build are then reported through inaccessible dialogs,
causing the build to hang.

   Simon

-- 
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/20190906093411.GE5841%40psi5.com.


Re: how to configure same wildcard ssl certificate for 2 applications in same server

2019-08-21 Thread Simon Richter
Hi,

> can we install jenkins and codebeamer in one server and configure both 
> application with a domain wildcard ssl certificate ?
> We have already configured codebeamer with ssl. Can we install and 
> congfigure ssl for Jenkins in same server?

There are lots of different possible setups. Presumably you want to use
different hostnames since you are asking about wildcard certificates.

Doing SSL inside Jenkins is a fairly unusual setup these days. It is
difficult to configure, and most people have some reverse proxy setup
anyway because getting Jenkins to listen on a privileged port without
running it as root is another system administration nightmare. That's why
there are so few tutorials about that. :]

So the typical setup is to run Jenkins inside a VM or container, or have it
listen on 127.0.0.1 only, and then use nginx or Apache to terminate SSL and
forward traffic to Jenkins. The manual for that should come with lots of
tutorials for setting up proxies with wildcard certificates, IP based
switching or Server Name Indication (SNI), depending on your preferences.

   Simon

-- 
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/20190821123732.GA3406%40psi5.com.


vcpkg integration on Windows

2019-07-10 Thread Simon Richter
Hi,

I'd like to build software on Windows using vcpkg, which keeps a per-node
repository of software up to date.

Given:

 - job A requires foo:x86 and bar:x86 in the repo
 - job B requires bar:x86 and bar:amd64 in the repo
 - job C requires foo:amd64 and bar:amd64 in the repo

Requirements:

 - no two vcpkg invocations at the same time
 - no vcpkg invocation that modifies an item that is in use by a currently
   running job
 - one vcpkg repository per node

Ideally, I'd like to have a declarative syntax that lets me list
dependencies, and these would be turned into reader/writer locks -- writer
locks for the vcpkg invocation, and reader locks for the actual build
process (multiple processes can share dependencies, but they should not be
modified during the build).

Is there something existing that already covers this use case?

   Simon

-- 
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/20190710161144.GA30074%40psi5.com.
For more options, visit https://groups.google.com/d/optout.


Re: Securing build scripts when building pull requests

2019-05-17 Thread Simon Richter
Hi,

On Thu, May 16, 2019 at 12:11:54PM -0700, Christopher Weaver wrote:

> For a project I work on, we have set up Jenkins, using the GitHub Branch 
> Source Plugin, to do automatic builds for pushes to our repository, 
> including test builds for pull requests. This is all working, but I am 
> concerned about the security implications for the pull requests.

Yes, that is a common problem. Most people either only test pull requests
from trusted people, or configure Jenkins to test inside a container with
no network access and strict resource limits that is discarded after the
build.

   Simon

-- 
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/20190517080348.GA17598%40psi5.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cloud Master / On-Prem Slave

2019-04-18 Thread Simon Richter
Hi,

On 18.04.19 14:38, Steve B wrote:

> I am fairly new to Jenkins.  We have used it on-prem for some builds.
> Development has started using Jenkins in the cloud for new features and
> I was wondering if I can have the Jenkins Master that is in the Cloud
> send jobs to my On-Prem slaves?

In theory, yes.

In practice, the artifact plugin does not like slow links at all: each
file requires a full round trip, so if you have lots of small files, the
latency of the link becomes a problem, and if you have big files, the
keepalive probes inside the agent protocol become queued behind
transfers, which might make the agent connection appear broken.

Also, any hiccup in the connection will fail running builds.

   Simon

-- 
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/b712d399-a4c0-d637-757f-e4267f74c7de%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Build Triggers - Build periodically plugins

2019-03-08 Thread Simon Richter
Hi,

On 07.03.19 22:39, Andrew Poage wrote:

> Anyone know of any plugins that can replace the cron job scheduler with
> simpler more robust scheduler. Essential looking to run jobs every 2nd
> and every 4th Saturday of the month. Since that tends to fluctuate a lot
> using the cron scheduler gets pretty dicey.

The 2nd Saturday of the month must be between the 8th and the 14th,
inclusive, so a range constraint on the day should express this nicely:

# every 2nd and 4th Saturday
H H 8-14 * 6
H H 22-28 * 6

   Simon

-- 
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/516fd546-5505-bb75-6e9e-d1c1eb6546ca%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Graceful exit?

2019-03-06 Thread Simon Richter
Hi,

On 06.03.19 20:29, JR Cary wrote:

> Is there a way to accomplish this (graceful stop, send some sort of
> signal) within Jenkins?

Jenkins has a "shutdown" state where it doesn't start any more builds,
which allows shutting down the server as soon as all jobs have finished.

It is also possible to mark agents as "offline", which will stop new
builds to be scheduled on them.

Both of these should be available via the API as well.

   Simon

-- 
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/5fb30cf1-3eab-4d9d-4c53-0ce76ea83c48%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Sporadic MSBuild errors / possible durable task issue?

2019-01-31 Thread Simon Richter
Hi,

On 31.01.19 17:31, Steven Foster wrote:

> There is no such extra information file. This looks a bit like an
> interrupt to me, is there a way I can reproduce how Jenkins sends
> interrupts so I can verify that?

There are a few things going on:

 - MSBuild sticks around after a build if the same project is rebuilt
 - Jenkins kills processes belonging to a build after it believes the
build has finished
 - MSBuild has serious issues with memory management

All of these are somewhat unpredictable.

I've found that it becomes a bit better if you set an environment variable

MSBUILDDISABLENODEREUSE=1

as suggested[1] by the VS team, disable the Jenkins Process Tree
Killer[2] and try to use the 64 bit version of MSBuild[3] to avoid
running out of virtual memory (which MSBuild sometimes, but not always
reports as the reason for termination in the log files in %APPDATA%\Temp)

   Simon

[1]
https://developercommunity.visualstudio.com/content/problem/301840/msbuild-not-terminating.html

[2] https://wiki.jenkins.io/display/JENKINS/ProcessTreeKiller

[3] https://gitlab.kitware.com/cmake/cmake/issues/18219

-- 
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/115f850e-abd8-f380-0157-9a6676f382c6%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Historic graph for CSV data

2019-01-31 Thread Simon Richter
Hi,

we have a repository with translations and a script that verifies that
the translated strings are still up to date with the source code. The
script generates a CSV file like

LANG;TRANSLATED;FUZZY;UNTRANSLATED
bg;1272;2991;1323
ca;2752;1848;986
cs;2762;2198;626

Now I'd like to visualize that in a kind of dashboard, with historical
data from the last builds.

The "hacky" way would be to import the current data into an RRD file
that is kept between builds, and used to generate graphs. For that, I'd
need a way to keep the RRD file, i.e. tell Jenkins that this file is to
be preserved between builds and moved to new workspaces. I'm not sure
there is a mechanism for that, is there?

Is there a non-hacky way as well? I can use the Plot plugin to generate
a graph for the first language over time, but the Plugin does not read
multiple lines from CSV. In theory, I could make one CSV per language
and instantiate the Plot plugin once per language as well, but I'd
really like something that takes the list of languages from the CSV file
as well.

Ideas?

   Simon

-- 
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/6266ff6c-1b62-4af1-0721-d3cc63ed1f85%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Jenkins Batch to Bash

2018-11-23 Thread Simon Richter
Hi,

On 23.11.18 15:14, Cornelius Ele wrote:

> Do these batch files need to be converted for the new Jenkins instance
> to perform all its jobs? If so, how can the conversion be done? 

The only things that need to be converted are "batch" build steps in
existing jobs if the job is no longer going to be executed on a Windows
agent.

The main Jenkins installation is independent from the agents (and the
executors on the master node behave like an agent, for the most part).

So a Jenkins installation on a Linux system will be able to configure
batch build steps, but not execute them.

   Simon

-- 
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/6a465fa5-2e96-f2d6-d152-873eb8b79355%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Re: Update all plugins automatically

2018-10-18 Thread Simon Richter
Hi,

> We are using open source Jenkins and have a bunch of plugins installed. 
> Is there a way to update all the plugins that are in the "Updates"
> section in the Plugin Manager?

Yes, if you select the checkboxes, you can update multiple plugins at
once. The "All" link at the bottom selects all checkboxes.

   Simon

-- 
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/20181018135212.GA17055%40psi5.com.
For more options, visit https://groups.google.com/d/optout.


Chroot: base image as matrix axis

2018-09-13 Thread Simon Richter
Hi,

I'd like to build a project against different Linux distributions.

Using the chroot plugin, I can easily set up a chroot for each, but I
need to specify the name of the base image in the project config.

Can I somehow select the chroot base image by a label, so a matrix build
with "debian-stretch", "debian-buster", "debian-sid", "ubuntu-xenial",
... would use the image configured with the appropriate label?

   Simon

-- 
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/d64d1cab-3025-1742-1fb9-07751bf4638f%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Re: Windows Desktop OS or Server OS is good for Jenkins master

2018-04-18 Thread Simon Richter
Hi,

On 16.04.2018 12:03, LnT wrote:

> Actually we will be providing Windows VMs. Not Linux.
> Hence looking for a piece of advice.  - *Desktop OS or ServerOS ?*

Desktop forces a reboot to install updates, which is not coordinated
with running services. Jenkins really doesn't handle shutdowns well if
you didn't make sure beforehand that no builds are running. Expect
spurious build failures, builds missing from the list and incomplete
artifact archives.

Server allows you to run updates manually, but someone needs to do that
and synchronize it with Jenkins, which is administration effort for
either you or your customers. This should be scriptable most likely, so
not all hope is lost.

If you really want to provide a turnkey solution, I hate to say it, but
Docker is the best idea, because it allows you to prepare an updated
base system image or Jenkins installation without affecting the running
instances, then you schedule a shutdown inside Jenkins and restart with
minimal downtime.

I'm not sure how far along Docker on Windows is these days though. MS
sells it as a solution so it's probably not all bad, but I know no one
actually using it.

   Simon

-- 
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/656bb959-438c-fb0d-ef92-a99412845552%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Serving LetsEncrypt challenge from Jenkins

2018-03-16 Thread Simon Richter
Hi,

I'm trying to set up a Jenkins instance that uses LetsEncrypt to get an
SSL certificate. This instance should run inside a VM with no external
dependencies.

So, I'd like to start up Jenkins with a self-signed certificate
initially, then an external script comes along and puts a static file
into the web tree, which is then requested externally, the file is
subsequently deleted and then Jenkins is restarted to load the new
certificate.

How would I make a file with a random name visible in the web tree (the
file is not below /userContent/)?

Also, I'd like to bind Jenkins to port 443 — is there a sane way to make
it bind the port and drop privileges, or do I need to create an ugly
workaround?

   Simon

-- 
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/24b066b8-e453-a64b-10ba-572df88b6c2d%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Re: best way to get execution time for test cases

2018-03-01 Thread Simon Richter
Hi,

> i'm looking for a way to get execution times for test cases (PhantomJs
> tests to be precise, if that matters).

I've adapted my test framework to generate a JUnit compatible output
file, and then used the JUnit plugin to parse it.

Try with an empty project and an example report.xml to see whether the
JUnit plugin provides the output you want.

   Simon

-- 
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/d67dc1cb-e8f8-f9ef-4512-6635a00dee4d%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Re: Kills me that BUILD_ID=dontKillMe

2018-01-17 Thread Simon Richter
Hi,

Am 17.01.2018 um 17:25 schrieb Ioannis Moutsatsos:

> The BUILD_ID (which up to this point was equal to BUILD_NUMBER) is now
> set to 'dontKillMe'

I dimly remember that this is a way to tell the cleanup code that kills
all processes after the build has finished to ignore certain processes.

On Windows with Visual Studio, this is often needed because pdbserv.exe
is shared between builds, so if the build that initially started it
finishes, all the other builds that are still running will fail.

Not sure why this is set now, but I'd suspect a plugin rather than
Jenkins core here.

   Simon

-- 
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/5A5F9EF2.30901%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Alternate workspace with concurrent builds disabled, why?

2017-12-19 Thread Simon Richter
Hi,

I have a matrix project, with the toplevel project tied to master and
the individual builds selecting agents by label, plus other axes:

 - cpu = (arm64, amd64, x86)
 - build = (debug, release)
 - compiler = (msvc)

where "msvc" is an agent label.

The project does no allow concurrent execution, but I see some of the
builds executing in an @2 workspace -- either all six of them, or one in
the primary workspace and five others in the @2.

The agent uses "-Dhudson.util.ProcessTree.disable=true" to allow
pdbsrv.exe to continue running after a build exits, to avoid parallel
builds terminating with an RPC error.

How can I find out why Jenkins decides to create a new workspace?

   Simon

-- 
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/819baa99-80c2-2129-381f-414b1da9e3be%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Re: Failing builds

2017-09-26 Thread Simon Richter
On 25.09.2017 23:35, Alex B wrote:

> Did you find a solution for this? Some of my builds have this while
> others don't. I suspect this to be a timing issue but I haven't found a
> solution.

There are a few common causes for this:

 - Windows Update rebooting the machine
 - NAT gateway resetting the connection
 - Agent swapping and responding too slow to a ping
 - Agent transferring artifacts in another job and responding too slow
to a ping.

There is no easy way to avoid these, and fixing it would require changes
in the Jenkins core.

   Simon

-- 
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/2efe5666-7b04-d7d1-a25e-f79335e5d3a2%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Release Button or best practice

2017-08-15 Thread Simon Richter
Hi,

On 15.08.2017 18:25, Steven Foster wrote:

> Does anyone know of any techniques or plugins for triggering a release
> after a build?

You are looking for the "Promoted Builds" plugin.

   Simon

-- 
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/0d98c982-dcdd-4ac2-dc93-9d849c3c9f31%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


How to build several tagged versions

2017-08-11 Thread Simon Richter
Hi,

I'd like to test our program against different versions of dependent
libraries, so I want to set up something like a matrix build (version,
cpu, debug/release).

Can I use a matrix parameter in selecting the version to build?

Can I somehow communicate the list of tags from one common place, and
add them to dependent builds automatically?

   Simon

-- 
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/b7b035e3-1788-7cb3-de6e-f93c47ed9d37%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Distributed Builds: Software required to build only installed on build node?

2017-07-10 Thread Simon Richter
Hi,

On 10.07.2017 21:27, Jason LeMauk wrote:

> Am I correct in assuming that when the project is built, the ioncube
> encoder will not need to be installed on the Jenkins Master machine but
> will need to be installed on the Jenkins Agent / Slave machine?

The master also has two executors, so jobs can be scheduled there.

To avoid this, use a tag on the hosts where the software is installed,
and require that tag inside the project config using "Restrict where
this build can be run".

This also allows you to install the software on a subset of the slave
machines only.

   Simon

-- 
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/1eba1bb1-0c4b-58df-f007-679a65c45d1a%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Multiple plots, defined by CSV files

2017-06-18 Thread Simon Richter
Hi,

I'd like to set up a translation status page for a project, with
statistics and graphs for translated, "fuzzy" and untranslated strings.

The build generates CSV files of the format

lang;translated;fuzzy;untranslated
ca;10;20;30
de;60;;
en;50;;10

etc.

The list of languages is not fixed, as new languages can be added by the
translation project; ideally I would not need to change the Jenkins
setup when that happens.

Now I'd like to have an overview page that displays the csv file as a
HTML table, and a history page that shows one graph per language, with
stacked areas for the three columns and using the build numbers as the x
axis.

Is there any way to generate this? I've tried the Plot and the
Statistics Gatherer plugins, to no avail.

   Simon

-- 
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/2f45a126-9216-25f1-bdfb-cb0f59fd9ca0%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Multi-configuration has n+1 checkouts

2017-03-14 Thread Simon Richter
Hi,

On 14.03.2017 12:20, Daniel Becroft wrote:

> Thanks. I guess I expected the headline job to work like a normal job,
> where changes are detected based on changes between the revision of the
> previous build.

The headline job is the normal job. It determines whether a build is
required, does a checkout and copies the new log entries to the change
log for the build, as any other job would do.

The individual builds ignore the branch configuration and just check out
the version that the headline job selected, then generate the change log
as a regular job would do (which should have the same entries as for the
headline job). If you have artifacts, changes in artifacts are only
recorded in sub-jobs, because these are detected during the build steps
(which are ignored in the headline job).

   Simon


-- 
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/94a33c78-f6ab-8b25-e877-1ea858899c37%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Multi-configuration has n+1 checkouts

2017-03-13 Thread Simon Richter
Hi,

On 13.03.2017 08:41, Daniel Becroft wrote:

> 1. There is a checkout performed on the headline job; then
> 2. A checkout is performed for each individual job

> Is there a way to remove the headline checkout as well, or a way to stop
> it being checked out to start with?

That is normal.

The headline job is responsible for deciding which version to build, and
it also maintains a list of changes for each build. The individual
builds don't check out the head revision, but rather the one that was
selected in the headline job -- that way, you get a consistent version
across all configurations.

   Simon

-- 
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/c72138f6-431b-8820-907f-dc8e88133ddf%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Enabling Windows long path support in Git plugin

2016-07-25 Thread Simon Richter
Hi,

On 25.07.2016 19:45, Mark Waite wrote:

> $ git config --system core.longpaths true

That is in essence what I did, the problem is that I'd have to do that
on all of the build slaves, while ideally I'd like to have that as part
of the project configuration so I don't end up having unexplained
failures on newly commissioned slaves.

   Simon

-- 
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/6749ea39-3a3d-b0d4-8685-127073bd3343%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Enabling Windows long path support in Git plugin

2016-07-25 Thread Simon Richter
Hi,

I'm trying to check out Boost, which has a file with a fairly long file
name, so the checkout fails on Windows. This could be fixed apparently
by setting the git setting core.longpaths to true.

How can I add that setting to newly created workspaces?

   Simon

-- 
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/18c20057-3d6f-1257-0646-820dc73d858a%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: How to run git fetch in Jenkins server

2016-06-29 Thread Simon Richter
Hi,

On 29.06.2016 11:14, phu...@temona.co.jp wrote:

> I am newbiee in Jenkins. I access to the Jenkins server but i can't run
> any git command.

> Have error 
> " ERROR: Repository not found.
> fatal: The remote end hung up unexpectedly "
> when i run
> "git fetch origin"
> this is my git config

> [remote "origin"]
> url = g...@github.com:*/*.git
> fetch = +refs/heads/*:refs/remotes/origin/*

You are using ssh for git, so you need to make sure the credentials you
need are properly configured ("Manage Jenkins" -> "Manage Credentials").

If the code is public anyway, I wouldn't bother though, and just use
https for checkout.

   Simon


-- 
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/44e28f59-c90a-add4-98c7-7e83fa09943f%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Tracking warnings and build times across incremental builds

2016-06-14 Thread Simon Richter
Hi,

we have a C/C++ codebase (using CMake to generate either Makefiles or
Visual Studio projects) that is a bit too large to try to build from
scratch every time, so I'd like to switch to incremental builds.
Unfortunately, this means that any warnings from files that are not
rebuilt will be marked as "fixed", and getting somewhat accurate build
time statistics is also difficult.

As I don't believe I'm the first person ever with that kind of problem:
does anyone have experience tracking warnings and build times (we're
interested mostly in CPU time, as wall clock time is unpredictable on
the VMs) across incremental builds? Are there existing tools?

   Simon

-- 
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/575C1FCA.1040203%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Tracking warnings and build times across incremental builds

2016-06-11 Thread Simon Richter
Hi,

we have a C/C++ codebase (using CMake to generate either Makefiles or
Visual Studio projects) that is a bit too large to try to build from
scratch every time, so I'd like to switch to incremental builds.
Unfortunately, this means that any warnings from files that are not
rebuilt will be marked as "fixed", and getting somewhat accurate build
time statistics is also difficult.

As I don't believe I'm the first person ever with that kind of problem:
does anyone have experience tracking warnings and build times (we're
interested mostly in CPU time, as wall clock time is unpredictable on
the VMs) across incremental builds? Are there existing tools?

   Simon

-- 
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/575CCCFC.2060809%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Re: Run Jenkins as a service and NOT headless

2016-05-27 Thread Simon Richter
Hi,

On 27.05.2016 17:50, developer.go...@gmail.com wrote:

> How do i run Jenkins as a service but not headless. If i am doing
> browser testing, i want to see it open Firefox, Chrome, etc. Thank you!

This is more a Windows sysadmin question:

Windows services have an option in their configuration that allows them
access to the desktop. By default, this is disabled, and enabling it
will allow programs to open visually.

That was the easy part. The hard part is that weird stuff will happen if
no one is logged in, so ideally you'd ask your local Windows admin
whether they have a good idea about that (e.g. automatic login, or
switching the logon screen to use a small window rather than a full-screen).

   Simon

-- 
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/57491258.8050501%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Start a job on slave / node that just connected to master server

2016-03-11 Thread Simon Richter
Hi,

On 11.03.2016 12:38, Jakub Gladykowski wrote:

> However all I want
> to do, is to trigger this job, only on the slave / node that just connected.

This seems like a good time to ask what you *actually* want to do[1].

   Simon

[1] http://xyproblem.info/

-- 
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/56E2B36C.20701%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


Re: Manage lib dependencies as compilation or link time dependencies?

2015-11-17 Thread Simon Richter
Hi,

> Newbie here looking to use jenkins to manage our build process.  I'm 
> attempting to follow jenkins best practices.  One specific thing I'm 
> wondering is how to set up my build dependencies or pipeline.  We have a 
> layered architecture which consists of many libraries (around 20) and a 
> couple of executables.  So we have layers of compilation dependencies but 
> really at link time i just have two stages, libraries and binaries.  My 
> question is should my jenkins job dependencies reflect the compile time 
> dependencies or just the link time dependencies?  

> The source is a mix of c and c++.

Typically I don't declare any job dependencies there. Each project can
be built and tested on its own, and the projects using the libraries
would use the results from the last successful build, so you still get
the maximum coverage if a library breaks.

   Simon

-- 
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/5648AF4E.3090605%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Manage lib dependencies as compilation or link time dependencies?

2015-11-17 Thread Simon Richter
Hi,

Am 17.11.2015 um 15:14 schrieb John Mellor:

>> Typically I don't declare any job dependencies there. Each project can be 
>> built and tested on its own, and the projects using the libraries would use 
>> the results from the last successful build, so you still get the maximum 
>> coverage if a library breaks.

> I strongly disagree.  Always specify the compile-time dependencies.  I assume 
> that you are not just cherry-picking product versions that happen to mostly 
> work, and actually need the work that is current to be the UUT.  The library 
> that you just built should be the one you test with, not some old version.  
> Testing old libraries that are not going to be shipped may occasionally get 
> you nice coverage numbers, but so what?  It not representative of the work 
> just done.

My point is that if a library fails to compile, that should not stop the
dependent projects from getting any work done, and it should not show up
as build failures for them.

Jenkins keeps track of dependent libraries pulled in as artifacts, so
simply triggering a rebuild of dependent projects after a library
changed is a good way to get the latest version of the library fully
tested (and failures show up with an empty project changelog and a note
that it was an artifact change that led to the failure).

However a "build library projects first" dependency is too strong.

   Simon

-- 
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/564B3AAC.7050603%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: GIT Time out

2015-09-07 Thread Simon Richter
Hi,

On 07.09.2015 12:33, thili...@wso2.com wrote:

>  > git -c core.askpass=true fetch --tags --progress 
> https://github.com/wso2/carbon-identity +refs/heads/*:refs/remotes/origin/*

I have a similar issue, but with a later version of the git plugin that
supposedly already includes a fix:

13:33:53  > git submodule update --init --recursive # timeout=60
13:39:09 FATAL: Command "git submodule update --init --recursive"
returned status code 1:

I've asked the github people about it, and they are investigating, might
be that this is an issue with the load balancer.

   Simon

-- 
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/55ED9245.10302%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: immediately fail whole matrix job if one configuration fails

2015-07-15 Thread Simon Richter
Hi,

On 15.07.2015 09:14, Simon Haegler wrote:

 thanks for your answer. my first attempt to configure touchstone
 configurations failed, i.e. it correctly prints touchstone configs
 resulted in failure... at the end but it still ran all configurations?!

Then the specificiation is probably broken. This is an expression, for
example for one job that has an axis cpu with the values x86 and
x64, I use

cpu==x86

Apparently, your configuration selects all configurations as touchstone.

   Simon


-- 
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/55A6A1FB.7010902%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: immediately fail whole matrix job if one configuration fails

2015-07-10 Thread Simon Richter
Hi,

On 10.07.2015 09:39, Simon Haegler wrote:

 is there a way to immediately fail a matrix job as soon as one of its
 configuration fails?

The usual way is to define one or more touchstone configurations that
are built first, and starting the remaining jobs only if these succeeded.

   Simon

-- 
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/559F7D55.6060405%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Breakdown of time spent on job, net time as summary

2015-06-17 Thread Simon Richter
Hi,

I have several matrix jobs running either because of a timer or a
commit, and some of these take ages. In total, I still get by with a
single executor, however individual matrix configurations get stuck in
the queue for extended times, which still counts as execution time for
the top level jobs.

Similarly, a lot of time is spent each time on transferring artifacts
between builds, and this is also fairly unpredictable.

Is there a way to get finer-grained details about the time spent, so
that I can easily ignore SCM actions and artifact transfer for the build
time display, and can I somehow use the net build time (running the
main build step) as the build time for a job in order to have
comparable values over time?

   Simon

-- 
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/55819C89.6070502%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: [workflow-plugin] Error script.sh: command not found when running shell script

2015-05-27 Thread Simon Richter
Hi,

On 27.05.2015 17:03, Boris Chavez-Bravo wrote:

 I am facing the exact same issue.  Has anyone come across a solution for 
 this problem?

This smells like one of those cases where you should have been calling
./script.sh, as the current directory is not on the search path for
very good reasons.

   Simon


-- 
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/5565E51B.1030604%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Slightly OT: How to build COM dlls in parallel

2015-05-18 Thread Simon Richter
Hi Andreas,

On 18.05.2015 15:16, Andreas Tscharner wrote:

 We use feature branches to develop new features on out product. Each
 feature branch has a build job on Jenkins. Our product builds quite a
 few COM DLLs which need other registered(?) TLB od DLLs. If the
 interfaces differ and more than one build run in parallel the interfaces
 and binaries get mixed up.

COM interfaces with the same IID need to be identical all of the time.

One customer of mine has a large project with changing interfaces, and
automatically generates a new UUID on checkin if an interface changed.

   Simon

-- 
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/5559ECB1.4030709%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Run tests on another machine

2015-04-28 Thread Simon Richter
Hi,

Am 28.04.2015 um 15:54 schrieb Fred G:

 In order to run screen tests, Jenkins or a Jenkins slave needs access to 
 the GUI. The easiest way (that I know of) is to start the Jenkins slave as 
 a JNLP agent.

It is also possible to install it as a service, however you have to go
into the service configuration and explicitly enable GUI access.

   Simon


-- 
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/553F93C2.1080300%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Run tests on another machine

2015-04-28 Thread Simon Richter
Hi,

Am 28.04.2015 um 16:30 schrieb Mark Waite:

 Usually that would mean that the PATH on your Windows machine does not
 include the maven bin directory.

There is a bit of a problem right now with the master overwriting the
environment of slaves with an old snapshot of the environment variables.
In case Maven was installed after the slave connected to the master for
the first time, this might be the problem (and deleting the node in the
master and recreating it fixes it).

   Simon

-- 
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/553FA1FC.4020604%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Jenkins 1.607 - Environment Variables Stuck

2015-04-28 Thread Simon Richter
Hi Jennifer,

 Just to sum it up… whatever process runs as a service will only load
new env values when restarted.

That is expected behaviour, yes.

 The JNLP and JNLP command line options are spawned from the Jenkins
master service, so you’ll want to restart that one after changing your
envs so it can pick up new values and pass them on.

So if the default environment on the slave changes, I need to restart
the slave first for it to pick it up (expected), and then subsequently
restart the master to make it re-fetch the environment from the slave,
which is then written back during execution?

I've had success getting new environment variables accepted by deleting
the node from the master config an recreating them with the same
settings. When the slave then reconnects, the new environment is
accepted (but also sticky).

I think I have also restarted the master at one point and didn't get an
updated environment.

I use a Linux master and Windows slaves BTW.

   Simon

-- 
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/553FA3CE.9030609%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Jenkins 1.607 - Environment Variables Stuck

2015-04-27 Thread Simon Richter
Hi,

On 27.04.2015 14:57, Jennifer Hofmeister wrote:

 Does the slave run as a service? If not, it will probably just read the 
 Jenkins service’s old PATH in case that one was not restarted after 
 manipulation.

I have the same issue, I can even reboot the slave and the environment
stays the same (all variables, not just PATH).

It appears that new variables are taken over once when the slave starts,
but then remain at their first value when changed later on.

   Simon

-- 
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/553E9F81.7010603%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


PATH stuck on Windows slaves

2015-04-24 Thread Simon Richter
Hi,

I have a Windows slave attached to a master instance running on a Linux
system, and find that the PATH environment variable (or really, all
variables) get stuck at the value they are first seen at.

When I create a new environment variable in Windows and restart the
Jenkins service, the variable shows up both in the node overview and in
the builds. Deleting variables does not work, neither does changing.

When I delete and recreate the node in the master's setup, a fresh set
of environment variables is fetched.

Is this intentional? Can I somehow force a re-read?

   Simon

-- 
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/553AE4C1.7000109%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Efficiently copying artifacts

2015-04-24 Thread Simon Richter
Hi,

I have a project that outputs a few large files (compiled DLL and static
library) as well as a few hundred header files as artifacts for use by
the next project in the dependency chain. Copying these in and out of
workspaces takes quite a long time, and the network link is not even
near capacity, so presumably handling of multiple small files is not
really efficient.

Can this be optimized somehow, e.g. by packing and unpacking the files
for transfer? Manual inspection of artifacts is secondary, I think.

   Simon

-- 
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/553AD99B.7060308%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature