Login to your OpenStack UI (aka Horizon)
Navigate through the side bar to:
Project > Compute > Access & Security
Click on the Security Groups tab
Click Manage Rules
Click Add Rule to create an SSH rule
Select SSH from the Rule drop down menu
Click Add
Click Add Rule to create a rule to allow Jenkins web access
Type 8080 in the Port input field
Click Add
Click Add Rule again
Select Egress from the Direction drop down menu
Type 8080 in the Port input field
Click Add
Navigate to Project > Compute > Access & Security
Click on the Key Pairs tab
Click on Import Key Pair
Switch to a terminal window
Type the following, then follow the instructions
cd ~/.ssh
ssh-keygen -t rsa -f cloud.key
cat cloud.key.pubCopy the output from the cat command, it should start with ssh-rsa
Paste it into the Public Key text area
Enter cloud in the Key Pair Name input field
Click on import key pair
Navigate Project > Compute > Instances
Click on Launch Instance
Type jenkins into the Instance Name input field
Select Boot from image from the Instance Boot Source drop down menu
Select the latest ubuntu server available
Click on the Access & Security tab
Verify that the cloud key pair is selected and the default security group is checked
Click Launch
From the Actions column
Click the drop down arrow to select Associate Floating IP
From the pop up modal window click the + button to create a new floating IP address
Click on Allocate IP
Click Associate
From the terminal ssh using the following command (with the IP that was just allocated)
ssh -i ~/.ssh/cloud.key ubuntu@[replace with your floating IP]Run the following commands to install Jenkins
sudo -i
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list
apt-get update
apt-get install jenkins
/etc/init.d/jenkins restart
exitOpen a browser and navigate to [http://[your floating ip]:8080/](http://[your floating ip]:8080/)