When you create a new job, you can write a script to execute your commands.
As example:
#!/bin/bash
# your script here
sudo apt-get update
sudo apt-get install jq
jq --help

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.