Skip to content

bsteveb/sba.jenkins-github-pipeline-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SBA Jenkins Github Python Flask Pipeline

  • Objective - Clone and modify this repository locally to ensure that Jenkins can successfully build(e.g. run the python script) this project.
  • Purpose - To demonstrate continuous integration skillset

TEST TEST

Prerequisite Software For Project

  • Install Python

  • Install PiP via Python

    • python -m ensurepip
  • Install Flask

    • python -m pip install Flask

Instructions

  • Fork and clone this project locally.
  • Modify this project by including a respective requirements.txt to download any pip dependencies for this python project.
  • Configure a Jenkins pipeline to build this project (e.g. run "python web.py")
  • Upon Jenkins successfully building the project, export the respective Jenkins file and add it to the root directory of your local project.
  • push your changes to your repository upon completion.

How to Download

Part 1 - Forking the Project

  • To fork the project, click the Fork button located at the top right of the project.

Part 2 - Navigating to forked Repository

  • Navigate to your github profile to find the newly forked repository.
  • Copy the URL of the project to the clipboard.

Part 3 - Cloning forked repository

  • Clone the repository from your account into the ~/dev directory.
    • if you do not have a ~/dev directory, make one by executing the following command:
      • mkdir ~/dev
    • navigate to the ~/dev directory by executing the following command:
      • cd ~/dev
    • clone the project by executing the following command:
      • git clone https://github.com/MYUSERNAME/NAMEOFPROJECT

How to run this

  • Upon executing python web.py, navigate to localhost:8080 to view the webpage.

How to Submit

Part 1 - Pushing local changes to remote repository

  • from a terminal navigate to the root directory of the cloned project.
  • from the root directory of the project, execute the following commands:
    • add all changes
      • git add .
    • commit changes to be pushed
      • git commit -m 'I have added changes'
    • push changes to your repository
      • git push -u origin master

Part 2 - Submitting assignment

  • from the browser, navigate to the forked project from your github account.
  • click the Pull Requests tab.
  • select New Pull Request
  • take a screenshot of your spinning flasks and send it via canvas to both Bill and Steve for full credit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 46.4%
  • JavaScript 26.2%
  • Batchfile 16.2%
  • Shell 6.4%
  • Python 4.3%
  • CSS 0.5%