Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.53 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.53 KB

If you can see this in Master branch, Jenkins Pipeline is working correctly #1

Sparta NodeJs Sample APP DevEnv and CI

This repo will be a dev env you can copy and setup by running vagrant up

Pre-Requisites

Instructions and step by step

  1. Clone this repo
  2. Run vagrant up in your terminal in that location
  3. go to 192.168.10.100 in your browser to see the homepage for the jsnode app
  4. this should also work on 192.168.10.100
  5. if you go to 192.168.10.100:3000 this should also be available there
  6. if you go to 192.168.10.100/fibonacci/{} where {} is any number you should see the fibonacci page is also working.
  7. finally, if you go to 192.168.10.100/posts you should see a posts page if the DB is working properly.

Jenkins how to read from a different branch

How to create and push to a new branch using GitBash

To create a branch type the following in bash, in a tracked directory

git checkout -b <branch>

changing to an existing branch

git checkout <branch>

commit to branch as normal

git add . 
git commit -m "comment"

once committed you can push specific branches to origin

git push origin <branch>