Continuous Integration with Jenkins on Alibaba Cloud

What Is Alibaba Cloud’s Elastic Compute Service (ECS)?

What Is Jenkins?


Build and Configure an Alibaba Cloud ECS Instance

Install Java on Ubuntu 18.04

apt update
apt install openjdk-8-jre-headless
java -version
apt install openjdk-8-jdk
java -version
apt updateapt upgrade
update-alternatives --config java
nano /etc/environmentJAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/"
source /etc/environment
apt update

Install Jenkins on Ubuntu

adduser jenkins_user
usermod -aG sudo jenkins_user
ufw allow OpenSSH
ufw enable
ufw status
wget -q -O - | sudo apt-key add –
sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'
apt update
apt install jenkins
sudo systemctl start jenkinssudo systemctl status jenkins
sudo ufw allow 8080
tail -f /var/log/jenkins/jenkins.log
http://<<Public IP Address>>:8080
nano /var/lib/Jenkins/secrets/initialAdminPassword
sudo service jenkins stopsudo service jenkins start




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store