Use a specific version of Firefox browser in Jenkins

Article ID:204030014
1 minute readKnowledge base

Issue

  • I would like to use a different firefox version than the one installed on the agents.

Environment

Resolution

#!/bin/sh
set -e

FIREFOX_VERSION=35.0
FIREFOX_DIR=${HOME}/tools/firefox-${FIREFOX_VERSION}

if test ! -x "${FIREFOX_DIR}"/firefox ; then
    wget https://download-origin.cdn.mozilla.net/pub/mozilla.org/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-17.0.tar.bz2
    mkdir -p "${FIREFOX_DIR}"
    bzcat firefox-${FIREFOX_VERSION}.tar.bz2 | tar -x -C ${FIREFOX_DIR} --strip-components=1 -f -
fi


Don't forget to add /${HOME}/tools/firefox-17.0 as the "Tool Home"
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.