From charlesreid1

Revision as of 00:21, 6 August 2018 by Admin (talk | contribs)

Basics

You develop Pipelines, the main object in Jenkins

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

AWS

AWS Jenkins Shepherd and Sheep

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

Overview:

  • launch ec2 instance
  • install jenkins
  • configure jenkins to spin up workers if build abilities need to be augmented

Set up security group:

  • set up a vpc
  • allow http access from anyone
  • allow ssh traffic from your public ip

Launching instance:

  • t2.micro
  • Enable auto-assign a public IP address
  • Choose your VPC from Network, choose your public subnet from Network

Install:

  • apt-get update
  • download/install (import yum key in instructions)
  • Connect to port 8080 to log in

Check for Jenkins password in /var/lib/jenkins/secrets/initialAdminPassword.

Select Amazon EC2 plugin, pick install without restart

Manage Jenkins > Configure system > Cloud > Add new cloud > Amazon EC2

Now you can create EC2 instances as build sheep


Links

https://jenkins.io/doc/tutorials/build-a-python-app-with-pyinstaller/

Flags