Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 2.37 KB

2-SetupJenkins.md

File metadata and controls

39 lines (21 loc) · 2.37 KB

Setting up Jenkins

Goals

  • Learn about Jenkins
  • Setup and Configure a Deployment Pipeline to build and deploy your application to production
  • Deploy to the Model server running in production

Navigate to Jenkins. After you log in you will be presented with the Jenkins Blue Ocean welcome page.

BlueOceanWelcome

Select "Create a Pipeline".

Click "GitHub".

Enter your Github Personal Access Token.

Select your github account, then cd4ml-scenarios and click "Create Pipeline"

At this step the pipeline will build, you can select the pipeline to see the individual steps execute. Jenkins will first index branches, which can take time. It will then checkout the code which can also take a while. It does get there eventually. At the end the pipeline should run and be 'green' indicating that all the steps were successful (shown below). If it times out then trigger a manual run.

GreenBuildPipline

Now, we can verify that our model works in production. Navigate to the ML Model here. You should see the following welcome page.

ModelHomePage

Click "Use latest valid model" in the Housing Price Prediction Scenario". From here you should be able to fill fields (see sample below) and click "Submit". Afterwards, you will see the estimated sale price of the house.

SampleHousePricePrediction

Finally, if you want to build the model for the sales forecasting scenario, navigate back to Jenkins, click Branches and then the play button next to the 'master' branch. You should see the following window.

SelectProblem

From here you can select the scenario that you want to execute by selecting the problem name of interest at the top. You can click 'Run' to execute the pipeline.

Now, you are ready to get started. You can continue the Zillow Housing Scenario (recommended to start here) or the Shopping Scenario.