This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!groovy | |
// This deployment script assumes that there is only a single Jenkins server (master) and there are no agents. | |
// If the setup includes agents, then the stages should be reconfigured to take advantage of additional remote nodes. | |
// This script is assuming that you're using a multi-branch project but the majority directly translates to a regular pipeline project. | |
node { | |
// It's often recommended to run a django project from a virtual environment. | |
// This way you can manage all of your depedencies without affecting the rest of your system. | |
def installed = fileExists 'bin/activate' |