#!/usr/bin/env bash # # This currently expects to be run on an Ubuntu machine function init_perforce_repo() { wget -q http://package.perforce.com/perforce.pubkey -O - | sudo apt-key add - dist=`lsb_release -c -s` sudo bash -c "echo 'deb http://package.perforce.com/apt/ubuntu ${dist} release' >> /etc/apt/sources.list.d/perforce.sources.list" # Ran into a "hash sum mismatch" from a Debian server. Reload everything. sudo rm -rf /var/lib/apt/lists/* sudo apt-get update } #---------------------------------------------------------------------------- # Main script #---------------------------------------------------------------------------- set -ex init_perforce_repo sudo apt-get install perforce-server -y
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15741 | ptomiak | Branch HWS for my use. | ||
//guest/perforce_software/helix-web-services/main/infrastructure/shell/install_perforce-server.sh | |||||
#1 | 15661 | tjuricek |
Add some basic email notification. Note: the 'P4' Jenkins plugin doesn't seem to alter the workflow environment. This means we don't really get access to the changelist we've synced. I'm investigating, this would be nice to have. |