This repository has been archived on 2024-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
container-copy/Jenkinsfile
Daniel Dayley d1ee05af9e
All checks were successful
git.cronocide.net/container-copy/pipeline/head This commit looks good
basic stuff. still need to log into the repo.
2023-10-12 23:49:42 -06:00

33 lines
721 B
Groovy

#!/usr/bin/env groovy
pipeline {
agent {
label 'nomad'
}
parameters {
string(name: 'GIT_REPO_NAME', defaultValue: 'git.cronocide.net', description: 'The hostname of the git repository.')
string(name: 'USERN', defaultValue: 'cronocide', description: 'The username of the user in the git repository.')
}
environment {
WORKSPACE_PATH = "/opt/nomad/alloc/${NOMAD_ALLOC_ID}/${NOMAD_TASK_NAME}${WORKSPACE}"
DESCRIPTION = "Another amazing piece of software written by Cronocide."
}
stages {
stage('Copy') {
steps {
withEnv(['ACTION=cicd_copy']) {
sh ( script: './build.sh')
}
}
}
}
post {
success {
echo 'Pipeline succeeded.'
}
failure {
echo 'Pipeline failed.'
}
}
}