Fwd: How to fix 'invalid crumb' warnings?

2021-06-09 Thread David Aldrich
Hi In our Jenkins System Log we see many instances of messages like these: Jun 08, 2021 12:09:17 PM WARNING hudson.security.csrf.CrumbFilter doFilter Found invalid crumb 3554fd3884df49f975319b4852c6caef3f8f0f96da8e2bfbcc493abf78cdc9d3. If you are calling this URL with a script, please use the

Re: High memory usage by Java process

2020-12-03 Thread David Aldrich
What would be a recommended setting? On Thu, Dec 3, 2020 at 12:41 PM 'Björn Pedersen' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Check the advanced settings for the agent at least ssh agents allow > custom JVM options there. > > Björn Pedersen schrieb am Donnerstag, 3.

High memory usage by Java process

2020-12-03 Thread David Aldrich
Hi I have a Centos 7 Jenkins agent. 'top' shows that Jenkins is running a Java process on it (as expected) but shows 22GB Virtual Memory allocated to that process. Seems very high, is that reasonable? Best regards David -- You received this message because you are subscribed to the Google

Re: Java install for Windows agent?

2020-11-27 Thread David Aldrich
* > > *COVID-19 : nous sommes fiers d’informer nos collaborateurs que Amotus > opèrent adéquatement et que l’impact sur notre productivité est minimisé. > Nous vous tiendrons au courant de tout changement.* > > > > *From:* jenkinsci-users@googlegroups.com > *On Behalf Of *D

Java install for Windows agent?

2020-11-26 Thread David Aldrich
Hi I have now partially succeeded in connecting to a Windows 10 agent from Jenkins via ssh. The ssh part succeeds but the connection then fails with: "Couldn't figure out the Java version of E:\jenkins/jdk/bin/java" I don't know why it's choosing that path as I have not specified a Java path.

Re: Recommended way to setup a windows agent nowadays ?

2020-11-26 Thread David Aldrich
I would like to connect to Windows agents via SSH (currently using JNLP). I've installed OpenSSH client and server on the Windows machine, but not sure what to do next. In the agent configuration I've selected: 'Launch agents via ssh' but when I launch I get: [11/26/20 17:49:12] [SSH] Opening

Re: Declarative script syntax: Archive from specific stage?

2020-01-24 Thread David Aldrich
>According to doc this is supported: https://jenkins.io/doc/book/pipeline/syntax/#post >Syntax is like this https://code-maven.com/slides/jenkins-intro/pipeline-post Thank you. That has fixed my problem. David -- You received this message because you are subscribed to the Google Groups

Re: Declarative script syntax: Archive from specific stage?

2020-01-23 Thread David Aldrich
> Did you try to write post after stage? It seems that is not allowed: WorkflowScript: 140: Expected a stage @ line 140, column 9. post{ ^ On Thu, Jan 23, 2020 at 4:34 PM David Aldrich wrote: > > try this url > > > https://Jenkins.io/doc/p

Re: Declarative script syntax: Archive from specific stage?

2020-01-23 Thread David Aldrich
> try this url > https://Jenkins.io/doc/pipeline/tour/tests-and-artifacts/ Thanks, but that doesn't address my situation where I have stages running on different agents and I want to archive results from a specific agent. > -- You received this message because you are subscribed to the

Declarative script syntax: Archive from specific stage?

2020-01-23 Thread David Aldrich
I have a question about declarative script syntax. I have a multi-stage job, where each stage runs on a separate agent. Whether the job passes or fails, I want to archive some artefacts from the job, so I have to call archiveArtifacts from post::cleanup(). stages { stage(‘S1’) {

JAVA_HOME on Windows?

2020-01-20 Thread David Aldrich
Hi When running a Visual Studio job from a declarative script on a Windows agent I see: E:\jenkins\workspace\CMake_tests_1_Windows_trunk>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat" \Java\jre1.8.0_241\bin"" was unexpected at this time. I

Jenkins with Parallel Builds?

2020-01-15 Thread David Aldrich
Hi 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? I

Re: Help request for Java exception

2019-10-09 Thread David Aldrich
The exception started happening after a minor jdk upgrade: java-1.8.0-openjdk-1:1.8.0.181-3.b13.el7_5.x86_64 -> java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64 On Wed, Oct 9, 2019 at 1:54 PM David Aldrich wrote: > I am seeing this Java exception trace for one of our declarative s

Help request for Java exception

2019-10-09 Thread David Aldrich
I am seeing this Java exception trace for one of our declarative scripts. It happens on a Centos 7 machine. Please can anyone suggest the reason? [Pipeline] End of Pipelinejava.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$TLSContext at

Re: Confused by declarative pipeline trigger specifications

2019-09-26 Thread David Aldrich
>> We use declarative pipelines extensively, triggered by SCM change. We use a >> cron spec to specify a SCM polling interval. >> It seems that the trigger specification can be set in two places: in the GUI >> configuration for the job and in the pipeline itself. >> Do I need to set both

Confused by declarative pipeline trigger specifications

2019-09-25 Thread David Aldrich
Hi We use declarative pipelines extensively, triggered by SCM change. We use a cron spec to specify a SCM polling interval. It seems that the trigger specification can be set in two places: in the GUI configuration for the job and in the pipeline itself. Do I need to set both trigger

Re: Workspace clean-up killed jobs

2019-05-02 Thread David Aldrich
t; Regards, > Sarfroz > > On Monday, November 27, 2017 at 2:16:04 PM UTC+5:30, David Aldrich wrote: > >> Hi >> >> >> >> Two of our declarative script jobs have failed for similar reasons. The >> jobs normally run with no problem. We are runnin

Failure to trigger freestyle job from declarative pipeline

2019-03-05 Thread David Aldrich
I have an unanswered Jenkins question on Stack Overflow. If anyone can help I would be grateful. https://stackoverflow.com/questions/54981206/failure-to-trigger-freestyle-job-from-declarative-pipeline If my question is too vague I would be grateful for suggestions of how to improve it. Best

JENKINS-2111 path sanitization ineffective ...

2019-02-14 Thread David Aldrich
Can anyone advise me what to do about this Jenkins console message please? JENKINS-2111 path sanitization ineffective when using legacy Workspace Root Directory ‘${ITEM_ROOTDIR}/workspace’; switch to ‘${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}’ as in JENKINS-8446 / JENKINS-21942 Best regards

'make' exit code is ignored in declarative script

2019-01-03 Thread David Aldrich
I have a declarative script that builds a C++ application on multiple agents in parallel. A stage looks like: stage('build') { parallel { stage('znsim08') { agent { label "znsim08" } steps { sh

RE: Jenkins shows exception after plugin updates

2018-11-20 Thread David Aldrich
Addressed by https://issues.jenkins-ci.org/browse/JENKINS-54686 From: jenkinsci-users@googlegroups.com On Behalf Of David Aldrich Sent: 20 November 2018 09:37 To: jenkinsci-users@googlegroups.com Subject: RE: Jenkins shows exception after plugin updates Looks like one of these is responsible

RE: Jenkins shows exception after plugin updates

2018-11-20 Thread David Aldrich
Looks like one of these is responsible: SSH slaves, Branch-API, CloudBees-Bitbucket-Branch-Source, CloudBees-Folder, Display-Url-API, Git-Client David From: jenkinsci-users@googlegroups.com On Behalf Of David Aldrich Sent: 20 November 2018 09:26 To: jenkinsci-users@googlegroups.com Subject

Jenkins shows exception after plugin updates

2018-11-20 Thread David Aldrich
) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) at David Aldrich | | NEC Telecom Modus Ltd | Olympus House, Cleeve Road, Leatherhead, Surrey, KT22 7SA, GB | t: +44 (0) 1372 381857 | m: | w: www.nec.com This email (including any

Multi-configuration project using declarative script?

2018-09-28 Thread David Aldrich
Hi I want to build a C++ project using make on numerous machines, each having a different version of g++. Currently I do this using a multi-configuration project. The configuration is growing more complicated in that some machines need some commands to run before calling make, so I have

Log contains escape sequence characters

2018-09-14 Thread David Aldrich
My declarative script job is failing. I understand the reason for the failure but I'm getting an unhelpful message in the log: [31mERROR: Errors occurred during the build. [0m How can I capture the real error message without these escape sequences? -- You received this message because you

Re: Manage Plugins > Check now gives an exception

2018-08-07 Thread David Aldrich
e.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) On Tue, Aug 7, 2018 at 10:27 AM David Aldrich wrote: > Hi > > Aft

Manage Plugins > Check now gives an exception

2018-08-07 Thread David Aldrich
Hi After a system change to our Jenkins master, *Manage Jenkins > Manage Plugins > Check now* gives an exception (see below). What could be causing this? Best regards David Caught exception evaluating: it.shouldDisplay() in /jenkins/log/. Reason: java.lang.ClassCastException:

RE: msbuild fatal error LNK1101 with Visual Studio Build Tools 2017 v.15.7.1 in declarative script

2018-05-15 Thread David Aldrich
same exact commands? On Tue, May 15, 2018 at 7:57 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: I have a msbuild job that runs within a Jenkins declarative script: stage('build_myProj_VisualStudio') { agent { label "jenki

msbuild fatal error LNK1101 with Visual Studio Build Tools 2017 v.15.7.1 in declarative script

2018-05-15 Thread David Aldrich
I have a msbuild job that runs within a Jenkins declarative script: stage('build_myProj_VisualStudio') { agent { label "jenkinswin10" } environment { VSMSBUILDCMD_14_0='C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsMSBuildCmd.bat'

RE: Visual Studio Environment

2018-04-27 Thread David Aldrich
We build Visual Studio C++ projects using Jenkins. We don’t use the MSBuild plugin but simply call msbuild from a bat step. It is necessary to call the Visual Studio Developer startup script first, from within that step. From: jenkinsci-users@googlegroups.com

How to inject an env variable from declarative script?

2018-04-23 Thread David Aldrich
Hi I'm trying to fix the occasional MSBuild error: "Fatal error C1090: PDB API call failed, error code '23'" 1. The advice given in JENKINS-9104 is to inject the following environment variable using EnvInject:

Problem running Visual Studio 2017 build tools from Jenkins

2018-04-23 Thread David Aldrich
Hi I'm having difficulty running the Visual Studio 2017 build tools on a Windows 10 slave as a Jenkins job. I have described my problem in StackOverflow: https://stackoverflow.com/questions/49922959/how-to-fix-java-was-unexpected-at-this-time-when-invoking-vs-2017-build-to/49944377#49944377

RE: Declarative script: How to escape 'Program Files (x86)'?

2018-04-20 Thread David Aldrich
- I don't have a Windows environment handy to test on. A. On Wed, Apr 18, 2018 at 6:28 AM, David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: My declarative script contains: environment { VSMSBUILDCMD_14_0 = 'C:\\Program Files (x86)\\Microsoft

RE: Java exception when copying artifacts

2018-04-19 Thread David Aldrich
when changing permissions to match the original file after the file has been copied. What are the permissions on /net/rsdprojects/SeraDL/Zodiac/Linux/HtmlDoc/Algorithms/html/Algorithms.html currently? On Apr 19, 2018, at 11:40, David Aldrich <david.aldr...@emea.nec.com<mailto:davi

RE: Java exception when copying artifacts

2018-04-19 Thread David Aldrich
kinsci-users@googlegroups.com Subject: Re: Java exception when copying artifacts Does the user that Jenkins is running as on the agent have access to the destination directory? On Thu, Apr 19, 2018 at 8:22 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec

Java exception when copying artifacts

2018-04-19 Thread David Aldrich
With Jenkins 2.107.2 LTS I am getting a Java exception when executing a 'Copy artifacts from another project' build step. I know that the destination directory is mounted and that my Jenkins user account has permission to write to the destination directory. Any suggestions what may cause this

Declarative script: How to escape 'Program Files (x86)'?

2018-04-18 Thread David Aldrich
My declarative script contains: environment { VSMSBUILDCMD_14_0 = 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsMSBuildCmd.bat' VSMSBUILDCMD_14_1 = 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsMSBuildCmd.bat' }

RemoteInvocationHandler statistics and an exception

2018-04-17 Thread David Aldrich
Hi We have just migrated our Jenkins master from a Centos 5 m/c to a Centos 7 m/c. The console log now shows some RemoteInvocationHandler statistics and an exception. Any thoughts why these are happening please? Jenkins is fully up and running Apr 17, 2018 8:37:03 AM INFO

RE: Confused about svn checkout with externals in declarative pipeline

2018-03-06 Thread David Aldrich
Hi This is fixed. The GUI configuration was sufficient but I wrongly had the ‘ignore externals’ option checked. Best regards David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: 06 March 2018 11:50 To: jenkinsci-users

Confused about svn checkout with externals in declarative pipeline

2018-03-06 Thread David Aldrich
Hi I have a declarative pipeline that is to checkout a Subversion project and build it (on Windows with msbuild). Until now, I have specified the checkout solely in the project's configuration page i.e. using the GUI. However, the project has changed and now uses svn externals. I specified

RE: Syntax for multiple artefact patterns in a declarative script?

2018-03-05 Thread David Aldrich
Thank you, that fixed it. archiveArtifacts artifacts:'myProj/myExe, solibs/*.so' Best regards David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Victor Martinez Sent: 05 March 2018 10:53 To: Jenkins Users

Syntax for multiple artefact patterns in a declarative script?

2018-03-05 Thread David Aldrich
Hi I want to specify two artefact patterns in a declarative script but am unsure of the syntax: post { always { archiveArtifacts artifacts:'myProj/myExe',artifacts:'../solibs/myLib' } } } Errors encountered validating Jenkinsfile: WorkflowScript: 71:

RE: Environment Injector Plugin update?

2018-02-27 Thread David Aldrich
ctor Plugin update? > > > > On 27. Feb 2018, at 09:36, David Aldrich <david.aldr...@emea.nec.com> > wrote: > > > > I am seeing a security warning for the Environment Injector Plugin but no > update is offered in Plugin Manager. > > Read the advisory. > > -- &g

Environment Injector Plugin update?

2018-02-27 Thread David Aldrich
Hi I am seeing a security warning for the Environment Injector Plugin but no update is offered in Plugin Manager. Best regards David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

RE: Release notes for Blue Ocean 1.4??

2018-01-25 Thread David Aldrich
> The Jira links are known to be broken due to the caching layer in front on > Confluence (uncached page access works). You can still click them, but it just > won't show the summary. This does make release notes very hard to read. The Blue Ocean 1.4.0 change log has many issues and there is

RE: Release notes for Blue Ocean 1.4??

2018-01-25 Thread David Aldrich
It seems that the JIRA -> Confluence application link is broken, so the JIRA links don’t work. Does anyone know where we should report this? David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Thiago Carvalho D Avila Sent: 24 January 2018 18:28

RE: Declarative script not archiving artefacts

2018-01-18 Thread David Aldrich
Thanks Björn Removing $WORKSPACE/ fixed it. Best regards David From: 'Björn Pedersen' via Jenkins Users [mailto:jenkinsci-users@googlegroups.com] Sent: 18 January 2018 12:27 To: Jenkins Users Subject: Re: Declarative script not archiving artefacts

Declarative script not archiving artefacts

2018-01-18 Thread David Aldrich
Hi I have a declarative script that is not archiving the build artefacts. The structure of the script is: pipeline { agent { label "sim07" } options { buildDiscarder(logRotator(numToKeepStr: '20')) } triggers { pollSCM('H 20 * * 1-5') } stages {

RE: Email When Slave Goes Offline?

2017-12-11 Thread David Aldrich
Look at Mail Watcher plugin. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of John Bobinyec Sent: 11 December 2017 13:27 To: Jenkins Users Subject: Email When Slave Goes Offline? Is there some way to send an admin

RE: Specifying Jenkins startup parameters

2017-11-14 Thread David Aldrich
the operating system level startup scripts. You need the operating system level restart, like /etc/init.d/jenkins restart. Mark Waite On Tue, Nov 14, 2017, 2:46 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Hi Mark Thanks for your reply.

RE: Specifying Jenkins startup parameters

2017-11-14 Thread David Aldrich
splay/JENKINS/Installing+Jenkins+on+Red+Hat+distributions If you're running on Windows, there is a configuration file written to the installation directory which can be changed. See https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+Windows+Installer Mark Waite On Fri, Nov 10, 2017 at 5:12 AM

Specifying Jenkins startup parameters

2017-11-10 Thread David Aldrich
Hi We typically restart Jenkins using 'Restart Safely' from the root menu. We now want to specify the session timeout using a startup parameter: java -jar jenkins.war --sessionTimeout=10080 How do people typically specify startup parameters? Should I use a script and never restart from the

RE: Declarative script: 'bat' command fails but job succeeds

2017-10-19 Thread David Aldrich
Thanks for your answer. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of jer...@bodycad.com Sent: 19 October 2017 15:36 To: Jenkins Users Subject: Re: Declarative script: 'bat' command fails but job succeeds Not

RE: Declarative script: 'bat' command fails but job succeeds

2017-10-19 Thread David Aldrich
Thanks very much for your reply. > Take care batch error level only is valid for the last command and not a > cumulative flag. Yes, that was exactly the issue. I followed your advice and the script works correctly now. > Also make sure you give the proper  bat argument returnStatus into your

RE: Declarative script: 'bat' command fails but job succeeds

2017-10-18 Thread David Aldrich
Yes, that’s right. Sorry for using wrong term. -- 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

RE: Declarative script: 'bat' command fails but job succeeds

2017-10-18 Thread David Aldrich
Here’s a better view of my script: pipeline { agent none options { buildDiscarder(logRotator(numToKeepStr: '20')) } triggers { pollSCM('H/5 * * * *') } stages { stage('build_gcc') { } stage('build_VisualStudio') {

RE: Declarative script: 'bat' command fails but job succeeds

2017-10-18 Thread David Aldrich
LURE So I had to explicitly check the errorlevel to detect the failure. Does this mean there is this a bug in the declarative script plugin? Best regards David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: 18 October

Declarative script: 'bat' command fails but job succeeds

2017-10-18 Thread David Aldrich
Hi I have a declarative script that runs a 'bat' step. That step builds some VS Studio projects on a Windows slave by calling msbuild: steps { bat ''' call "%VSMSBUILDCMD%" msbuild %WORKSPACE%\\MSVC\\ /p:Configuration=config_0

RE: How to resolve 'Failed Loading item ' ?

2017-10-18 Thread David Aldrich
Original Message- > From: jenkinsci-users@googlegroups.com [mailto:jenkinsci- > us...@googlegroups.com] On Behalf Of Daniel Beck > Sent: 18 October 2017 10:02 > To: jenkinsci-users@googlegroups.com > Subject: Re: How to resolve 'Failed Loading item ' ? > > > > O

How to resolve 'Failed Loading item ' ?

2017-10-18 Thread David Aldrich
Hi I have deleted some jobs that used the deprecated multi-branch project plugin. I have also uninstalled that plugin. Since restarting the system (running Jenkins 2.85) I get exceptions for those deleted jobs: Failed Loading item com.thoughtworks.xstream.mapper.CannotResolveClassException:

'%2f' in multibranch pipeline project name

2017-10-10 Thread David Aldrich
Hi I have a multibranch pipeline project (declarative script), which I run against a Subversion repository. The format of the branches is: branches/branch_name my multibranch pipeline project is rendering these names with '%2f' instead of '/'. I think this issue has been reported in the

RE: Multibranch checkout for jenkinsfile

2017-10-09 Thread David Aldrich
If I may comment on this, I think the main issue is that there is currently no maintainer for the svn plugin. So, even if someone was able to make the changes Stephen suggested, they may not be released. It’s quite a problem for some of us that Subversion is no longer well supported in

RE: Trouble running JNLP slave as a service in Windows 10

2017-10-04 Thread David Aldrich
d by another, but after some time you will achieve your goal. От: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> от имени David Aldrich <david.aldr...@emea.ne

Trouble running JNLP slave as a service in Windows 10

2017-10-04 Thread David Aldrich
Hi I want to install a JNLP slave as a service in Windows 10. If I use the 'easy' method of going to the node page, from the slave machine, and clicking on the Launch button, the slave launches. But if I select 'File > Install as a service' I get an exception:

Problem with environment variable in declarative script

2017-09-21 Thread David Aldrich
Hi My Jenkinsfile contains: environment { SCRIPTS_PATH="${WORKSPACE}/Tools/Jenkins/PythonScripts" } When the script runs I get exception: groovy.lang.MissingPropertyException: No such property: WORKSPACE for class: groovy.lang.Binding at

Jenkinsfile naming convention?

2017-09-21 Thread David Aldrich
Hi My understanding is that it is now possible to have multiple Jenkinsfiles in a repository. Is there any convention for naming Jenkinsfiles? Do you always call them Jenkinsfile and indicate their function in a directory name? Or do you indicate their function in the filename? Best regards

Advice wanted on multibranch declarative script for Subversion project

2017-09-04 Thread David Aldrich
Hi I want to write a multibranch declarative script for a project stored in Subversion. I have already done this for another project (which worked) but this new one has the complication that the repo uses externals. Unfortunately the multibranch pipeline GUI screen does not offer the option

Preferred Git server for Jenkins?

2017-08-31 Thread David Aldrich
Hi Our company uses Subversion for version control but I want to investigate providing a Git server to support Jenkins declarative scripts and Blue Ocean. (I realise that declarative scripts can be stored in Subversion, but I think that Git support for them is better). We have the option of

RE: Stuck declarative script

2017-07-26 Thread David Aldrich
Fixed now. Needed to resume. -- 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

RE: Stuck declarative script

2017-07-26 Thread David Aldrich
The job's log states: Waiting to resume part of MyJob_sw_builds » trunk #554: ??? Still paused -- 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

Stuck declarative script

2017-07-26 Thread David Aldrich
Hi I have a declarative script job that appears to have got stuck because it's slave rebooted. Now I can't kill it. When I click the red cross against the job I see: "Are you sure you want to abort null". I accept but nothing happens. It also survives a Jenkins restart. How can I kill

RE: Multiple Jenkinsfiles in a single repo - Clarification

2017-07-18 Thread David Aldrich
I haven’t tried it, but I expect that: Build configuration > Script Path allows you to specify the specific Jenkinsfile that you want to run. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Simon Cowie Sent: 18 July 2017 00:40 To: Jenkins Users

RE: Multibranch pipeline job doesn't fully support Subversion?

2017-06-08 Thread David Aldrich
From: Oleg Nenashev [mailto:o.v.nenas...@gmail.com] Sent: 08 June 2017 11:18 To: Jenkins Users <jenkinsci-users@googlegroups.com> Cc: David Aldrich <david.aldr...@emea.nec.com> Subject: Re: Multibranch pipeline job doesn't fully support Subversion? The current state of the SVN plugin is di

Multibranch pipeline job doesn't fully support Subversion?

2017-06-07 Thread David Aldrich
Hi There is a known issue with the Subversion plugin that 'Additional Credentials' must be specified if Externals are used. Most job types allow the user to specify the 'Additional Credentials' in the GUI, but the Multibranch pipeline job does not. To me, this is a show-stopper for using

Plugins metadata failing signature check?

2017-06-07 Thread David Aldrich
After checking for updated plugins this morning I see: "None of the tool installer metadata passed the signature check" Best regards David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

RE: Declarative script: specify build trigger in GUI or script?

2017-05-24 Thread David Aldrich
David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Hi, I'm confused about how to specify a build trigger for a declarative script. I want the job to be triggered by an SCM commit so I specified in my script: triggers {

Declarative script: specify build trigger in GUI or script?

2017-05-22 Thread David Aldrich
Hi, I'm confused about how to specify a build trigger for a declarative script. I want the job to be triggered by an SCM commit so I specified in my script: triggers { pollSCM('H/5 * * * *') } to poll every 5 minutes. However, the job is not being run even though commits have

RE: How to specify recipients in email-ext step in declarative script?

2017-05-19 Thread David Aldrich
on its own for pipeline jobs and it may not have all the info that a free style project does. On Thu, May 18, 2017, 07:12 David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Well I haven’t found definitions of the providers so I can’t be sure, but the

How to use Jenkins CLI for linter?

2017-05-19 Thread David Aldrich
Hi I want to use the Jenkins declarative script linter via the CLI. I have specified a fixed SSHD port in Jenkins Global Security. I have shared my SSH public key with my account on the Jenkins server, so I can connect to the server using SSH. However, when I try to run the linter I get an

RE: One Jenkinsfile per repo in multi-branch workflows?

2017-05-19 Thread David Aldrich
> There seems to be some work done in this regard, but it seems to be lagging, > so I can't tell if it's going to stay this way or not. Thanks for your answer. Good to know it is being worked on. David -- You received this message because you are subscribed to the Google Groups "Jenkins

One Jenkinsfile per repo in multi-branch workflows?

2017-05-18 Thread David Aldrich
Hi As the free-style Multi-Branch Project plugin is deprecated, I am experimenting with the Multibranch Pipeline job type. With the Multi-Branch Project plugin it was possible to have multiple multi-branch jobs. We took advantage of that and had multiple jobs to build different executables

RE: How to specify recipients in email-ext step in declarative script?

2017-05-18 Thread David Aldrich
? On Thu, May 18, 2017 at 2:33 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Hi Slide Thanks for helping me with this. I am using a declarative pipeline. In the ‘post’ clause, I set ‘success’, ‘failure’, ‘unstable’ and ‘changed’ to all be:

RE: How to specify recipients in email-ext step in declarative script?

2017-05-18 Thread David Aldrich
be emailed. On Wed, May 17, 2017 at 7:27 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Hi Slide I am running the job manually. There are commits by another user since the job last ran, so I assume there should be culprits. The job actually succe

RE: How to specify recipients in email-ext step in declarative script?

2017-05-17 Thread David Aldrich
no changes, then there are no culprits. The culprits are pulled from the changes from the scm you specify. On Wed, May 17, 2017, 04:07 David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: I tried replacing my code with that produced by the snipp

RE: How to specify recipients in email-ext step in declarative script?

2017-05-17 Thread David Aldrich
}', to: 'daldrich') } But the result is an email to daldrich but not to the culprits. Could this be a bug in the emailext plugin? BR David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: 17 May 2017 08:53

RE: How to specify recipients in email-ext step in declarative script?

2017-05-17 Thread David Aldrich
nsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: 16 May 2017 17:02 To: jenkinsci-users@googlegroups.com Subject: RE: How to specify recipients in email-ext step in declarative script? Thanks Slide David From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> [

RE: How to specify recipients in email-ext step in declarative script?

2017-05-16 Thread David Aldrich
ents Also, you may be missing a '}' to close the script block. On Tue, May 16, 2017 at 7:12 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Hi Slide Thanks. I tried the code below based on your suggestion but the syntax of my change isn’t qui

RE: How to specify recipients in email-ext step in declarative script?

2017-05-16 Thread David Aldrich
(..., to: recipients) } On Tue, May 16, 2017 at 6:18 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Hi Danny, That worked (with email addresses in quotes) – thanks. Do you know how I would specify ‘to:’ as a certain email address + committers? Best

RE: How to specify recipients in email-ext step in declarative script?

2017-05-16 Thread David Aldrich
to:a...@him.com>, subject: "FAILURE", body: "FAILURE!" ) } } On Tue, May 16, 2017 at 11:25 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Hi I am experimenting with declarat

How to specify recipients in email-ext step in declarative script?

2017-05-16 Thread David Aldrich
Hi I am experimenting with declarative scripts and have this simple script: pipeline { agent { label "mypc" } stages { stage('build') { steps { sh 'python --version' } } } post { success { script:

RE: Syntax for "mail to" in declarative script?

2017-05-15 Thread David Aldrich
I'm a little further on - I've added a call to emailext. Below is declarative script. But I get error: An attempt to send an e-mail to empty list of recipients, ignored. How can I set the recipients list? Do I need another script step? stages { stage('build') {

RE: Syntax for "mail to" in declarative script?

2017-05-15 Thread David Aldrich
On Behalf Of David Aldrich > Sent: 15 May 2017 13:19 > To: jenkinsci-users@googlegroups.com > Subject: Syntax for "mail to" in declarative script? > > Hi > > Where can I find a definition and syntax for "mail to" for a declarative > script? > > Spe

Syntax for "mail to" in declarative script?

2017-05-15 Thread David Aldrich
Hi Where can I find a definition and syntax for "mail to" for a declarative script? Specifically I want to know: 1) Is it possible to specify a recipient by user name rather than full email address? 2) How to specify 'committers'? 3) How can I set the message body to be similar to that sent

RE: How to get started with Blue Ocean for Subversion user?

2017-05-11 Thread David Aldrich
pipeline. Probably best to use github rather than hosting your own git server because blue ocean declarative pipeline editing works best with github. Mark Waite On Thu, May 11, 2017, 10:26 AM David Aldrich <david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>> wrote: Hi

How to get started with Blue Ocean for Subversion user?

2017-05-11 Thread David Aldrich
Hi I am finding it difficult to construct declarative pipelines as code, so I want to try out Blue Ocean to construct them graphically. However, we store our project repositories in Subversion not Git. Blue Ocean wants a Git repository or GitHub. I can't use the latter because our IT policy

RE: Request for simple pipeline example to do checkout, run shell script, email result

2017-04-28 Thread David Aldrich
f David Karr > Sent: 27 April 2017 18:08 > To: Jenkins Users <jenkinsci-users@googlegroups.com> > Subject: Re: Request for simple pipeline example to do checkout, run shell > script, email result > > On Thu, Apr 27, 2017 at 3:05 AM, David Aldrich > <david.aldr...@emea.nec

Request for simple pipeline example to do checkout, run shell script, email result

2017-04-27 Thread David Aldrich
Hi Please can anyone point me to, or provide, a simple and complete pipeline script example to do a checkout, run a shell script and email the result? I am using svn, but a git example would be ok. Best regards David -- You received this message because you are subscribed to the Google

RE: How to use email-ext plugin in pipeline script?

2017-04-25 Thread David Aldrich
end it to me by email? Best regards David From: jer...@bodycad.com [mailto:jer...@bodycad.com] Sent: 24 April 2017 18:32 To: Jenkins Users <jenkinsci-users@googlegroups.com> Cc: David Aldrich <david.aldr...@emea.nec.com> Subject: Re: How to use email-ext plugin in pipeline script? I

RE: How to use email-ext plugin in pipeline script?

2017-04-24 Thread David Aldrich
and say that pipeline isn't for everyone. Not ever build setup needs pipeline. Free style projects are just fine to use still. If they meet your needs, then I don't see a reason to switch to pipeline. On Mon, Apr 24, 2017 at 9:17 AM David Aldrich <david.aldr...@emea.nec.com<mailto:davi

RE: How to use email-ext plugin in pipeline script?

2017-04-24 Thread David Aldrich
very user friendly to difficult ☹ From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of jer...@bodycad.com Sent: 24 April 2017 17:13 To: Jenkins Users <jenkinsci-users@googlegroups.com> Cc: David Aldrich <david.aldr...@emea.nec.com> Subject: Re

  1   2   3   4   >