This chapter shows how to integrate with FeaturePeek when using the Jenkins continuous integration service.
Example Jenkinsfile config
If you already have your Jenkinsfile set up, simply add a phase including the FeaturePeek CI command after your build phase.
If you don't have your Jenkinsfile set up yet, take a look at these examples provided by Jenkins to get started.
If your frontend pushes to the Google Container Registry, your
Jenkinsfile file would look something like this (using the
Sample code repo
You can search the FeaturePeek org on GitHub to find sample repos of frontends that integrate FeaturePeek with Jenkins. Be sure to visit the open pull requests to find links to running public FeaturePeek deployments.
Additionally, the repo that powers this documentation builds with Jenkins — you can view the real-world code to see how easy it is to integrate with FeaturePeek. Be sure to take a look at the Jenkinsfile and any open pull requests to see links to running public FeaturePeek deployments.
Try it out
Try opening a new pull request that contain the changes in this chapter. When your CI finishes successfully, you should see the FeaturePeek bot comment a link on your pull request. If not, consult our Troubleshooting section.