From charlesreid1

Line 4: Line 4:


Pipelines have 3 basic steps: build step, test step, and deploy (or "deliver") step.
Pipelines have 3 basic steps: build step, test step, and deploy (or "deliver") step.
=Get Started=
==Installing==
DigitalOcean guide to installing Jenkins on Ubuntu 16.04: https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-ubuntu-16-04
<pre>
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
sudo apt-get update
sudo apt-get install jenkins
</pre>
==Starting==
Jenkins runs as a service, so start it like this:
<pre>
sudo systemctl start jenkins
</pre>
Check its status like this:
<pre>
sudo systemctl status jenkins
</pre>
==Accessing==
You should be able to access Jenkins at port 8080. (http://your-ip:8080)
If it is not available, you may nee to open port 8080 using your firewall (ufw or iptables or other).


=AWS=
=AWS=
Line 10: Line 42:


Tasks:
Tasks:
* Open firewall port 8080 (security group)
* Install Jenkins
* Install Jenkins
* Open firewall
* Access Jenkins
* Access Jenkins
* Run a basic Python workflow
* Run a basic Python workflow

Revision as of 00:58, 6 August 2018

Basics

You develop Pipelines, the main object in Jenkins

Pipelines have 3 basic steps: build step, test step, and deploy (or "deliver") step.

Get Started

Installing

DigitalOcean guide to installing Jenkins on Ubuntu 16.04: https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-ubuntu-16-04

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
sudo apt-get update
sudo apt-get install jenkins

Starting

Jenkins runs as a service, so start it like this:

sudo systemctl start jenkins

Check its status like this:

sudo systemctl status jenkins

Accessing

You should be able to access Jenkins at port 8080. (http://your-ip:8080)

If it is not available, you may nee to open port 8080 using your firewall (ufw or iptables or other).

AWS

Spin up an AWS node.

Tasks:

  • Open firewall port 8080 (security group)
  • Install Jenkins
  • Access Jenkins
  • Run a basic Python workflow

Links

Jenkins tutorial on python build workflows with Jenkins: https://jenkins.io/doc/tutorials/build-a-python-app-with-pyinstaller/

Guide to setting up a Jenkins build server on AWS: https://aws.amazon.com/getting-started/projects/setup-jenkins-build-server/

Flags