Migrate the Jenkins script to the new Terminal class.