Url: https://jenkins.nordix.org/
Server Access
ssh $USER@91.123.202.89 sudo su - centos ssh jenkins
Incompatibilities between Jenkins plugins and JJB
The following new version of the Jenkins plugin caused the jjb build job to fail:
Jenkins plugin | version | Error |
---|---|---|
Slack Notification | newer than 2.49 | packages/jenkins_jobs/modules/publishers.py", line 7751, in slack raise MissingAttributeError(yaml_name) jenkins_jobs.errors.MissingAttributeError: Missing team-domain from an instance of 'publisher.slack' |
PostBuildScript | newer than 3.0.0 | jenkins_jobs.errors.JenkinsJobsException: Unknown entry point or macro 'role' for component type: 'builder'. |
Previous vresion : 2.401.2
Current version : 2.426.1
docker pull jenkins/jenkins:2.426.1-lts
13 Dec 2022
Previous Version: 2.332.2
Current Version: 2.361.4
The following plugins can't be upgraded as the JJB is not updated for the new version of those plugins:
https://storyboard.openstack.org/#!/story/2009943 WO: PostBuildScript Plugin keep version 3.0.0
https://storyboard.openstack.org/#!/story/2009819 WO: Slack plugin downgraded keep version 2.49
9th May 2022
Running Version: 2.319.1
Next Version: 2.332.2
docker ps NAMES CONTAINER ID IMAGE STATUS nordix-jenkins-2.319.1 f2d3ea34224e jenkins/jenkins:lts Up 5 weeks
$ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 3.8G 0 3.8G 0% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 3.9G 25M 3.8G 1% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/vda1 20G 11G 10G 51% / /dev/vdb1 50G 14G 33G 30% /data tmpfs 783M 0 783M 0% /run/user/1000
Stop Container
docker stop nordix-jenkins-2.319.1
Backup
The directory /data/jenkins
is mounted as /var/jenkins_home
in jenkins docker container and contains the jenkins data.
cd /data tar -zcvf "jenkins-$(date '+%Y-%m-%d').tar.gz" jenkins
Start Container
Starting the new container using following command
docker run \ --detach \ --restart=unless-stopped \ --name="nordix-jenkins-2.332.2" \ -u 1000 \ -p 8081:8080 \ -p 49127:49127 \ --log-driver json-file \ --log-opt max-size=30m \ --log-opt max-file=9 \ --env JENKINS_SLAVE_AGENT_PORT=49127 \ -v /data/jenkins:/var/jenkins_home \ jenkins/jenkins:2.332.2-lts
Monitoring
docker logs -f nordix-jenkins-2.332.2-lts
Rollback
docker stop nordix-jenkins-2.332.2 docker start nordix-jenkins-2.319.1
Cleanup
docker rm nordix-jenkins-2.319.1
2 Comments
Anonymous
Start Container
You are missing port: -p 8081:8080
Nauman Yaseen
Thanks, I have added it again