When you create a new job, you can write a script to execute your commands.
# your script here
sudo apt-get update
sudo apt-get install jq
I've been using such scripts for quite some time now. I used it to install nvm(https://github.com/creationix/nvm), so that I can use any node.js version. You'll have to reinstall tools you want to use in the jobs that require them.