# Download Tomcat 10.1.x
wget https://archive.apache.org/dist/tomcat/tomcat-10/v10.1.40/bin/apache-tomcat-10.1.40.tar.gz
# Extract and deploy
tar xzf apache-tomcat-10.1.40.tar.gz
export CATALINA_HOME=$(pwd)/apache-tomcat-10.1.40
cp jenkins.war $CATALINA_HOME/webapps/