[Fuego] Jenkins Upgrade on Fuego

Srivatsan S <[email protected]> Mon, 12 Oct 2020 16:22:57 +0530
Newsgroups dev.linux.lists.fuego
Message-ID <CAMAk9365Qb8Ljimr6BkTS=+B6L6EmrvPjpKan=JGFooABUhr3A@mail.gmail.com>
Tim,

Following procedure was followed to update Jenkins on Fuego. Note that the
Jenkins was updated to version 2.235.3 with the below mentioned procedure.

(1) Did the below changes to the docker file:

*** Dockerfile.orig 2020-08-24 12:04:21.354920683 +0530
--- Dockerfile 2020-10-12 12:30:03.573646056 +0530
***************
*** 105,112 ****
  ARG uid=1000
  ARG gid=${uid}
  ARG JENKINS_PORT=8090
! ARG JENKINS_VERSION=2.164.2
! ARG JENKINS_SHA=4536f43f61b1fca6c58bd91040fa09304eea96ab
  ARG JENKINS_URL=
https://pkg.jenkins.io/debian-stable/binary/jenkins_${JENKINS_VERSION}_all.deb
  ARG JENKINS_UC=https://updates.jenkins.io
  ARG REF=/var/lib/jenkins/plugins
--- 105,112 ----
  ARG uid=1000
  ARG gid=${uid}
  ARG JENKINS_PORT=8090
! ARG JENKINS_VERSION=2.235.3
! ARG
JENKINS_SHA=e88642a2b52fc26ffa4425a0aba65163f083d770e5ef7182b2e32de41ff33981
  ARG JENKINS_URL=
https://pkg.jenkins.io/debian-stable/binary/jenkins_${JENKINS_VERSION}_all.deb
  ARG JENKINS_UC=https://updates.jenkins.io
  ARG REF=/var/lib/jenkins/plugins

(2) Run the install.sh script

(3) "ftc" add-job commands were failing after migration to the new Jenkins
version. On debugging, it was figured out that there was an explicit
invocation of "jenkins-cli.jar" file to create jobs. This file was missing
after migration to the new version. However, this file had been
rechristened as cli-2.235.3.jar in the migrated jenkins version and moved
to the directory: /var/cache/jenkins/war/WEB-INF/lib. Hence, the following
softlink was added for smooth execution of "ftc" commands.

cd /var/cache/jenkins/war/WEB-INF
ln -s lib/cli-${JENKINS_VERSION}.jar jenkins-cli.jar

After the above steps, everything started working.

The following pipeline related plugins (along with their respective
versions) were explicitly installed to suit our requirements.
    (1) pipeline-build-step - 2.12
    (2) pipeline-graph-analysis - 1.10
    (3) pipeline-input-step - 2.11
    (4) pipeline-milestone-step - 1.3.1
    (5) pipeline-model-api - 1.6.0
    (6) pipeline-model-declarative-agent - 1.1.1
    (7) pipeline-model-definition - 1.6.0
    (8) pipeline-model-extension - 1.6.0
    (9) pipeline-rest-api - 2.14
    (10) pipeline-stage-step - 2.4
    (11) pipeline-stage-tags-metadata - 1.6.0
    (12) pipeline-stage-view - 2.14


Regards,
Srivatsan

-- 






This
message contains confidential information and is intended only 
for the
individual(s) named. If you are not the intended
recipient, you are 
notified that disclosing, copying, distributing or taking any
action in 
reliance on the contents of this mail and attached file/s is strictly
prohibited. Please notify the
sender immediately and delete this e-mail 
from your system. E-mail transmission
cannot be guaranteed to be secured or 
error-free as information could be
intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain
viruses. The sender therefore does 
not accept liability for any errors or
omissions in the contents of this 
message, which arise as a result of e-mail
transmission.