Documents Product Categories Jenkins on Ubuntu Server 20.04 with Support by cloudimg

Jenkins on Ubuntu Server 20.04 with Support by cloudimg

Jun 28, 2024
Ubuntu Server 20.04 – Jenkins Server Version: 1.0.0 Created by: cloudimg Table of Contents 1.) Overview......................................................................................................................1 2.) Access & Security..........................................................................................................2 3.) System Requirements....................................................................................................2 4.) Connecting to the Instance...........................................................................................2 5.) On Startup....................................................................................................................2 6.) Filesystem Configuration..............................................................................................3 7.) Server Components......................................................................................................3 8.) Scripts and Log Files.....................................................................................................4 9.) Using System Components...........................................................................................4 1.) Overview This document is provided as a user guide for the Ubuntu Server 20.04 – Jenkins Server product offering on the Alibaba Cloud Marketplace. Please reach out to support@cloudimg.co.uk if any issues are encountered following this user guide for the chosen product offering.2.)Access & Security Please update the security group of the target instance to allow the below ports and protocols for access and connectivity. Protocol Type Port Description SSH TCP 22 SSH connectivity HTTP TCP 8080 Jenkins Front End 3.)System Requirements The minimum system requirements for the chosen product offering can be found below Minimum CPU Minimum RAM Required Disk Space 1 1 GB 20 GB 4.) Connecting to the Instance Once launched in the ECS Console, please connect to the instance via an SSH client using the root user with the key pair associated at launch. 5.) On Startup An OS package update script has been configured to run on boot to ensure the image is fully up to date at first use. You can disable this feature by removing the script from /stage/scripts/ and deleting the entry in crontab for the root user. Disable the OS update script from running on reboot rm -f /stage/scripts/initial_boot_update.sh crontab -e #DELETE THE BELOW LINE. SAVE AND EXIT THE FILE. @reboot /stage/scripts/initial_boot_update.sh6.) Filesystem Configuration Please see below for a screenshot of the server disk configuration and specific mount point mappings for software locations. Filesystem Size Used Avail Use% Mounted on udev 446M 0 446M 0% /dev tmpfs 95M 828K 94M 1% /run /dev/nvme0n1p3 38G 5.8G 30G 17% / tmpfs 472M 0 472M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 472M 0 472M 0% /sys/fs/cgroup /dev/nvme0n1p2 2.0G 173M 1.7G 10% /boot /dev/loop1 56M 56M 0 100% /snap/core18/2538 /dev/loop0 56M 56M 0 100% /snap/core18/2409 /dev/loop2 62M 62M 0 100% /snap/core20/1518 /dev/loop3 62M 62M 0 100% /snap/core20/1581 /dev/loop4 71M 71M 0 100% /snap/lxd/21029 /dev/loop5 47M 47M 0 100% /snap/snapd/16010 /dev/loop6 47M 47M 0 100% /snap/snapd/16292 /dev/loop7 68M 68M 0 100% /snap/lxd/22753 tmpfs 95M 0 95M 0% /run/user/1002 Mount Point Description /boot Operating System Kernel files 7.) Server Components Please see below for a list of installed server components and their respective installation paths. The below versions are subject to change on initial boot based on the initial_boot_update.sh script finding new versions of the software in the systems package repositories.Component Version Software Home Aliyun CLI 3 /usr/local/bin/aliyun Java 11 /bin/java Jenkins 2.361.1 /etc/sysconfig/jenkins 8.) Scripts and Log Files The below table provides a breakdown of any scripts & log files created to enhance the useability of the chosen offering. Script/Log Path Description Initial_boot_update.sh /stage/scripts Update the Operating System with the latest updates available. Initial_boot_update.log /stage/scripts Provides output for initial_boot_update.sh 9.) Using System Components Instructions can be found below for using each component of the server build mentioned in section 7 of this user guide document. Aliyun CLI Run – Once logged into the server, you may check the options available for the use of Aliyun CLI via the below command. aliyun –-help Jenkins The Jenkins service has been configured to start on boot, please use the below commands to start, stop and check the status of the service. #Check the Jenkins service status systemctl status jenkins#Check the Jenkins service is stopped systemctl stop jenkins #Check the Jenkins service is started systemctl start jenkins Once the Jenkins service has started, you will be able to access the front end via the below URL exchanging the values between <> to match that of your own instance. :8080 Once loaded, a screen like the above will appear. From the instance command line, retrieve the temporary password as suggested in the above screenshot from the /var/lib/jenkins/secrets/initialAdminPassword file. cat /var/lib/jenkins/secrets/initialAdminPassword SAMPLE EXPECTED OUTPUT 7d3a6676bf72419bb4d00f6143a456a7 Paste the password in the web browser field as shown belowClick Continue Select either option shown in the above screenshot applicable to your use case. It is advised to select ‘Install suggested plugins’ for most use cases.The screen may appear white for 30-60 seconds whilst the installation is carried out. Please fill out the above details based on your own use case. The values above are for example only. Click Save & ContinueClick Save & Finish Click Start using JenkinsJenkins is now available and ready for use.
To view the full page, please visit: Jenkins on Ubuntu Server 20.04 with Support by cloudimg Product Userguide

Jenkins on Ubuntu Server 20.04 with Support by cloudimg

This product has charges associated with it for the build, maintenance and support of the image.
Buy now