Truncate the Jenkins output when it’s too long for the database

Add a link to the Jenkins output for a build too