Skip to content

Instantly share code, notes, and snippets.

View dj-wasabi's full-sized avatar

Werner Dijkerman dj-wasabi

View GitHub Profile
#!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'