...

/

Testing the New Build Pack

Testing the New Build Pack

This lesson will test the newly made build pack by importing a project that uses it.

Let’s check whether our new build pack works as expected.

Press + to interact
cd ..
cd go-demo-6

We entered into the local copy of the go-demo-6 repository.

Remove go-demo-6 project

If you are reusing Jenkins X installation from the previous chapter, you’ll need to remove the go-demo-6 application as well as the activities so that we can restart the process of importing it.

⚠️ Please execute the commands that follow only if you did not destroy the cluster from the previous chapter and if you still have the go-demo-6 project inside Jenkins X. The first command will delete the application, while the second will remove all the Jenkins X activities related to go-demo-6.

Press + to interact
jx delete application \
$GH_USER/go-demo-6 \
--batch-mode
kubectl --namespace jx delete act \
--selector owner=$GH_USER \
--selector sourcerepository=go-demo-6

Undo commits made to master

To make sure that our new build pack is indeed working as expected, we’ll undo all the commits we made to the master branch in the previous chapter and start over.

Press + to interact
git pull
git checkout orig
git merge -s ours master --no-edit
git checkout master
git merge orig
rm -rf charts
git push

We replaced the master branch with orig and pushed the changes to GitHub.

...
Access this course and 1400+ top-rated courses and projects.