Delay agent execution for auto-updates at boot

2019-08-29 Thread James Green
I finally used Packer to build an AMI based on Amazon Linux 2 to act as as agent. Yesterday, the builds began failing with a Java stack trace. Turns out the EC2 instance starts, and in parallel the Jenkins agent begins and an auto-upgrade of openjdk kicked off. Further instructions failed. Rebuild

Re: Delay agent execution for auto-updates at boot

2019-09-03 Thread James Green
. Solves our issue. Ticket if anyone is interested: https://issues.jenkins-ci.org/browse/JENKINS-59180 On Thu, 29 Aug 2019 at 10:17, James Green wrote: > I finally used Packer to build an AMI based on Amazon Linux 2 to act as as > agent. Yesterday, the builds began failing with a Java stack

Re: Delay agent execution for auto-updates at boot

2019-09-04 Thread James Green
r to > perform an upgrade. From what I see in the code ( > https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java#L184) > it should wait for the upgrade to be finished. > > Hope this helps > > Cheers > > On Tuesday, Se

ec2-plugin: now really slow on first build

2020-05-28 Thread James Green
Hi, I'm aware that a recent ec2-plugin upgrade has led us to switch to the "recommended" ssh handshake protocol. However, my team are now complaining that new EC2 instances are taking minutes to get started whereas before a couple of weeks ago it was bearable. Subsequent builds by the same agent

OOM: Permgen issues only when run as a Windows Service

2014-05-08 Thread James Green
I've got a Windows 8 Pro machine connected to our Jenkins 1.562 instance as a slave. The slave runs as a windows service. I have set MAVEN_OPTS as a system property variable. If I open an administrative cmd prompt and type 'set' included is the following: MAVEN_OPTS=-Xms1024m -Xmx1024m -XX:NewSiz

Distributing software through web sites with automatic updates

2014-05-09 Thread James Green
We are distributing Windows software via a web site that includes an automatic updates feature. Both the Windows software and the web site are built using Maven and Jenkins. At present the web site (a WAR) uses Maven to depend-on a Maven version of the Windows software (an exe). Each "customer" re

Re: Permgen issues only when run as a Windows Service

2014-05-19 Thread James Green
n the same commands myself. Some help on this would be appreciated. Thanks, James On 8 May 2014 13:43, wrote: > There are memory issues in 1.560/1.561/1.562 – see > https://issues.jenkins-ci.org/browse/JENKINS-22734 > > > > *From:* James Green [mailto:james.mk.gr...@gmail.c

Re: Permgen issues only when run as a Windows Service

2014-05-28 Thread James Green
to MAVEN_OPTS. This resolved the issue for me. On 19 May 2014 16:05, James Green wrote: > Right - server is now 1.563 and I restarted the Jenkins service. I still > get PermGen errors. > > Time to file a bug..? > > Build output includes: > > Parsing POMs > Modules ch

Most downloaded plugins?

2014-06-02 Thread James Green
I'm looking at https://wiki.jenkins-ci.org/display/JENKINS/Plugins I can lots of plugins across various categories. I don't necessarily know what I want or under which category it might exist. Would it be possible to create a page listing plugins by their downloads count? Most commonly used ones

Re: Most downloaded plugins?

2014-06-03 Thread James Green
ugins by popularity, optionally only > those with 500+ or 1000+ installations, in graph format: > > http://stats.jenkins-ci.org/jenkins-stats/svg/svgs.html > > On 02.06.2014, at 11:21, James Green wrote: > > > I'm looking at https://wiki.jenkins-ci.org/display/JENKINS/

Discard old builds - limit to snapshots?

2014-08-15 Thread James Green
I'd really like to keep build history of releases but maintain only a limited set of snapshot history. Is there a way to do this? Thanks, James -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Re: Discard old builds - limit to snapshots?

2014-08-15 Thread James Green
a an API call to jenkins as part of the build. > > > > /James > > > > *From:* jenkinsci-users@googlegroups.com [mailto: > jenkinsci-users@googlegroups.com] *On Behalf Of *James Green > *Sent:* 15 August 2014 09:20 > *To:* jenkinsci-users@googlegroups.com > *Subjec

Re: Discard old builds - limit to snapshots?

2014-08-15 Thread James Green
; > *From:* jenkinsci-users@googlegroups.com [mailto: > jenkinsci-users@googlegroups.com] *On Behalf Of *James Green > *Sent:* Friday, August 15, 2014 7:20 AM > *To:* jenkinsci-users@googlegroups.com > *Subject:* Re: Discard old builds - limit to snapshots? > > > > I see a b

Re: Insert the SVN repository changes comments into DB table by Jenkins

2014-08-22 Thread James Green
Nothing to do with Jenkins. Have a look for repository management tools instead. On 21 August 2014 22:03, Sree M wrote: > Any Help Appreciated... > > > On Thursday, August 21, 2014 1:03:55 PM UTC-4, Sree M wrote: >> >> Hello Users, I am new to Jenkins and I have a requirement on Jenkins and >>

Build parameter not passing through

2014-10-24 Thread James Green
Jenkins 1.585 Maven Integration Plugin 1.7 Part of my pom uses maven-enforcer-plugin to requireEnvironmentVariable, failing if it's not found. I thought by providing this as a build parameter ( https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build) I would satisfy the build. But it's no

hudson remoting: IllegalStateException

2014-10-24 Thread James Green
I got the following stacktrace as my build "aborted". I manually invoked the build again and it worked fine. Any ideas? [INFO] All coverage checks have been met. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.refle

Re: Selenium crashes Chrome when running from Jenkins

2014-10-29 Thread James Green
That's a two year-old thread. There are other issues that are similar ( https://code.google.com/p/chromedriver/issues/detail?id=928) and current. On 28 October 2014 17:28, Tamilarasan Rajendran wrote: > Hi, I am also facing similar issue. > > I am trying to execute my automation scripts in Jenki

Re: Jenkins CI and the accessibility of it's UI

2014-10-30 Thread James Green
On 29 October 2014 14:15, R. Tyler Croy wrote: > (replies inline) > > On Wed, 24 Sep 2014, laura1fxj...@gmail.com wrote: > > > > > > > I?m not sure if this is the right forum for this request, but I was > hoping > > someone might be able to point me in the right direction? > > > > I was hoping so

Re: Restricting logins via LDAP groups

2014-11-19 Thread James Green
You either know who they are, or they are anonymous. Once you know their identity then you can set their permissions. Everyone in our company even sales can identify themselves against our instance but they won't see anything unless they are in at least "jenkins-users" and to make changes they requ

Last Success shows unexpected time

2014-11-20 Thread James Green
My build just completed. It took around five minutes. The "Last Success" time shows a time five minutes ago - presumably the time the build _began_. Am I wrong in expecting the last success to be when the last successful build _completed_? James -- You received this message because you are subs

When you are declined login

2014-12-10 Thread James Green
When I type in a bad username/password, I get a page asking me to try again. Any reason I have to click the link before being prompted to type it again? Most systems these day re-prompt with any last error message. Just trying to cut down the mouse clicks... James -- You received this message

1.598 Maven builds failing StackOverflowError

2015-01-27 Thread James Green
With 1.598 we're seeing StackOverflowErrors on deploying to Nexus. On downgrading to 1.597 our builds are fixed. These issues appear relevant, worthwhile mentioning to the wider community here: https://issues.jenkins-ci.org/browse/JENKINS-26601 https://issues.jenkins-ci.org/browse/JENKINS-26595

Tools installation doesn't happen

2016-01-29 Thread James Green
My job wants to launch a Docker container. I've gone into System Configuration and asked it to install the latest Docker CLI from docker.io When my job runs, it fails telling me it cannot find the 'docker' binary in the path. There appears to be no attempt to install the tool automatically. Surel

Re: Tools installation doesn't happen

2016-01-29 Thread James Green
Does this actually run on a master? I ask as the documentation describes how it's useful on slaves, but does NOT state that it is exclusively for slaves... On 29 January 2016 at 11:08, James Green wrote: > My job wants to launch a Docker container. I've gone into System > C

Google Container Registry: Authentication fault

2016-02-11 Thread James Green
We are using latest stable Jenkins and trying to push images to the Google Container Registry which is basically a private Docker image storage service. I can push using their 'gcloud' command line tool no problem. But I cannot get Jenkins to push successfully - we see authentication failures. We

Dump current JENKINS_OPTS?

2016-07-01 Thread James Green
Can't immediately see a way of doing this. I've set a new `sessionTimeout` and I'd like to confirm that Jenkins is honouring it. Without wishing to wait a lengthy period, is there a web console page to dump Jenkins' current configuration? Thanks, James -- You received this message because you

Reliable Job Name?

2017-12-21 Thread James Green
I have a multibranch job inside a folder. It's JOB_BASE_NAME is the name of the git branch name, not the job's base name. I'm slightly bemused that there appears no API means of acquiring such information, at least not from the Google Fu I have so far. Any ideas? James -- You received this mes

[multibranch] [bitbucket] Code push tells Jenkins, Jenkins doesn't build anything

2017-12-22 Thread James Green
I've just converted a Pipeline job that built every time a change was pushed into BitBucket to the equivalent as a multibranch project. Trouble is, pushes no longer trigger builds. BitBucket is still getting a 200 OK from the webhook when it hits Jenkins, but nothing else happens. On inspection,

Re: [multibranch] [bitbucket] Code push tells Jenkins, Jenkins doesn't build anything

2017-12-22 Thread James Green
reation screen mentioned the need for a new web hook... Oh well! James On 22 December 2017 at 09:27, James Green wrote: > I've just converted a Pipeline job that built every time a change was > pushed into BitBucket to the equivalent as a multibranch project. > > Trouble is,

Pipeline options incorrectly documented?

2018-01-02 Thread James Green
Ref: https://jenkins.io/doc/book/pipeline/syntax/ I've just added `timestamps()` to my Jenkinsfile: options { buildDiscarder(logRotator(numToKeepStr: '20')) timestamps() } And the build fails immedidately: WorkflowScript: 5: Invalid option type "timestamps". Valid option

Advanced / Deprecated plugins

2018-01-04 Thread James Green
Within the "Sample Step" drop-down we have an end listing Advanced / Deprecated plugins. How can I tell which ones are Advanced, and which are Deprecated? I am, in particular, very confused concerning our use of docker private registries which I'm reading we may be using the wrong plugin for. Th

Run script before build is deleted?

2018-10-11 Thread James Green
Is this possible? What I would like to do: examine the build and discover if there are any docker images. If there are, delete them from the registry first. Is this feasible? Thanks, James -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: Run script before build is deleted?

2018-10-12 Thread James Green
How so? I need this to run as the build gets expired but as it completes. On Thu, 11 Oct 2018 at 17:58, Jan Monterrubio wrote: > As a post build script, probably. > > On Thu, Oct 11, 2018 at 11:35 James Green > wrote: > >> Is this possible? >> >> What I would

Re: Run script before build is deleted?

2018-10-24 Thread James Green
On Sat, Oct 13, 2018, 07:36 Jan Monterrubio > wrote: > >> Would the Post Build actions (execute shell) not execute in the right >> spot? >> >> >> https://www.oreilly.com/library/view/jenkins-the-definitive/9781449311155/ch05s07.html >> >> >> O

file-operations-plugin: silent failure downloading from Nexus

2017-04-28 Thread James Green
This plugin works fine downloading binaries from various web sites, but give it a file to download from Nexus and it fails instantly with no error: [Pipeline] step File Download Operation: Started downloading file from https://repository.jboss.org/asm/1.5.3/lib/asm-attrs.jar [Pipeline] } [Pipelin

Per Job Dashboard: Add information from Jenkinsfile?

2017-05-12 Thread James Green
Is this possible? I have just adapted a Jenkinsfile to set the job description based on some dynamic values. But what I would really like it to add entries into a simple map of key=value pairs that can then be rendered on the job screen. I think I saw something a little like this in the enterpri

Discard old build artifacts?

2017-07-20 Thread James Green
I don't want to remove the entire job - having the logs of what the SCM commit was and build output logs is really useful alongside the Jenkins build number. But I'm generating gigs of artifacts that I don't need. Is there a way of discarding these within a Jenkinsfile? Thanks, James -- You re

Re: Discard old build artifacts?

2017-07-21 Thread James Green
amp;r=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI&m=wv4kA7CLSuSU86ow6ZNtdXLiH2ZiLB3rvP5pGf65fww&s=A_awz9VnJjxt4_7rijVpMLyb_NAwDE_r9bzK5AljQfc&e=> > > *From:* jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@ > googlegroups.com ] *On Behalf Of *James > Green > *Subject:* Discard old

jenkins-jira-plugin: Failed to authenticate with JIRA

2017-07-24 Thread James Green
Got the latest LTS version of Jenkins with current jenkins-jira-plugin and a JIRA 6.4 installation. I can log in to JIRA without issue and in the configuration I can see that the Remote API is indeed switched on. When I do a wget from our Jenkins box against JIRA I get told I'm not authenticated

Re: jenkins-jira-plugin: Failed to authenticate with JIRA

2017-07-26 Thread James Green
1 (latest pre-2.0) could resolve this problem > http://updates.jenkins-ci.org/download/plugins/jira/ > <http://updates.jenkins-ci.org/download/plugins/jira/1.41/jira.hpi>, but > I'd suggest upgrading Jira to 7.0 if possible to use the latest version of > the plugin. > >

SVN Credentials missing after migration

2015-03-02 Thread James Green
We tried migrating a Jenkins instance from one server to another by simply rsync'ing /var/lib/jenkins. This successfully produced a new server full of jobs. But on running one of them we were told to enter SVN credentials for the repository. This is strange given we have this on a global basis (co

Re: Jenkins API + Maven + Eclipse

2015-03-05 Thread James Green
I hate to +1 but I'm falling into agreement here. The writing of scripts is largely dependant on api knowledge which most people expect their IDE to auto-complete for them. Without the Jenkins artefacts in central, this impedes community development. On 5 March 2015 at 11:25, Sverre Moe wrote:

Re: Moving from built-in Jenkins user DB to another source (like Google)

2015-03-10 Thread James Green
Do it with a test jenkins instance. Pure speculation otherwise. On 9 March 2015 at 16:13, Mike Chmielewski wrote: > Hi everyone, > > I was wondering if anyone has experiences they are willing to share about > moving the user DB from the built-in Jenkins DB to an outside one like LDAP > or Google

Re: Promote jobs from test -> staging -> production

2015-03-18 Thread James Green
Going off topic rather... I just spoke out loud in our office the fragment "develop in test, test in staging, and run in production". Consensus here is that as an industry we have the names wrong. After all, non technical bosses expect testing before "going live", they have no idea what "staging"

Re: Is it OK to link config.xml files?

2015-03-24 Thread James Green
Isn't this what the job-dsl-plugin was designed to "fix"? On 24 March 2015 at 16:01, Steve K wrote: > Hello, > > I have a set of jobs that are identical, except for their names. > For example, I might have a job named "Downstream-Post-Build-Process-Dev" > and "Downstream-Post-Build-Process-Relea

Re: Jenkins, Web application server and Nexus

2015-08-21 Thread James Green
The only point I'd make is you don't really want Jenkins to "know" about your servers individually to deploy to them. Perhaps for staging purposes, but given the elasticity in the world of production machines you probably want to "pull" using a script on your production instances from your repo man

Re: Jenkins and GitHub Enterprise "Forking"

2015-09-23 Thread James Green
This would require Jenkins and the SCM to share permissions, wouldn't it? For Jenkins to be configured to "follow forks" it needs permission to access any other user's repositories as they may be a fork of the originally monitored repository? Doesn't Bamboo do this? Or did I misread this feature?

Promoting a build with $POM_VERSION?

2015-10-28 Thread James Green
We have a Maven job to which I have added a "Promote builds when" clause allowing someone to pick a build and promote it. This promotion triggers a deployment job. This deployment job appears pretty naive. Is there any way of getting the Maven project version into here? From my limited understandi