-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5e2212
commit cd689c6
Showing
6 changed files
with
172 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#! groovy | ||
|
||
@Library('gcs-build-scripts') _ | ||
|
||
pipeline { | ||
agent none | ||
options { | ||
buildDiscarder( | ||
logRotator( | ||
numToKeepStr: '5', | ||
artifactNumToKeepStr: '1', | ||
artifactDaysToKeepStr: '7' | ||
) | ||
) | ||
timeout(time: 3, unit: 'HOURS') | ||
disableConcurrentBuilds() | ||
} | ||
stages { | ||
stage ("Prep source") { | ||
agent {label "package_creator"} | ||
steps { | ||
checkout scm | ||
script { | ||
env.SOURCE_STASH_NAME = "${UUID.randomUUID()}"; | ||
def py_full_version = sh(script: "/opt/globus-python/bin/python3 -c 'import sys; print(\"{}.{}.{}\".format(*sys.version_info))'", returnStdout: true).trim() | ||
def (py_epoch_version, py_major_version, py_minor_version) = py_full_version.tokenize(".") | ||
def pkg_version = "not yet set" | ||
|
||
def venv_py = "${env.WORKSPACE}/compute_endpoint/packaging/venv-${py_epoch_version}${py_major_version}/bin/python" | ||
sh "git clean -fdx" | ||
sh "git checkout kevin_package_test" | ||
|
||
dir("compute_endpoint/packaging/") { | ||
sh(script: "make show_vars") | ||
sh(script: "make setup_dist_for_deb setup_dist_for_rpm") | ||
} | ||
dir("compute_endpoint/") { | ||
pkg_version = sh(script: "${venv_py} setup.py --version", returnStdout: true).trim().replace("-", "~") | ||
echo "pkg_version = ${pkg_version}" | ||
} | ||
env.PKG_TARBALL = "globus_compute_endpoint-${pkg_version.replace("~", "")}.tar.gz" | ||
env.PREREQS_TARBALL = "globus_compute_endpoint-prereqs-py${py_epoch_version}${py_major_version}-${pkg_version}.tar.gz" | ||
dir("compute_endpoint/packaging/") { | ||
sh "mv dist/ ${env.SOURCE_STASH_NAME}" | ||
stash(name: env.SOURCE_STASH_NAME, includes: "${env.SOURCE_STASH_NAME}/**/*") | ||
} | ||
} | ||
} | ||
} | ||
stage ("Build packages") { | ||
steps { | ||
script { | ||
lock(resource: 'globus-compute-agent-build') { | ||
parallel "debian": { | ||
def extra_tarball_map = [ | ||
prereqs: env.PREREQS_TARBALL | ||
] | ||
echo "extra_tarball_map = ${extra_tarball_map}" | ||
env.DEB_ARTIFACTS_STASH = buildDebian( | ||
env.SOURCE_STASH_NAME, | ||
env.PKG_TARBALL, | ||
require_gcs5_repo: true, | ||
epic: null, | ||
exclude: null, | ||
exclude_arch: "arm64", | ||
extra_tarball_map: extra_tarball_map | ||
) | ||
}, "rpm": { | ||
env.RPM_ARTIFACTS_STASH = buildMock( | ||
env.SOURCE_STASH_NAME, | ||
env.PKG_TARBALL, | ||
true, | ||
null | ||
) | ||
}, "failFast": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ Source: @PACKAGE_NAME@ | |
Priority: optional | ||
Section: contrib/science | ||
Maintainer: Globus Support <[email protected]> | ||
Build-Depends: debhelper (>= 13.6), globus-python (>= 3.9), dh-exec, dh-python | ||
Build-Depends: debhelper (>= 12), globus-python (>= 3.9), dh-exec, dh-python | ||
Standards-Version: 4.6.0 | ||
Homepage: https://globus-compute.readthedocs.io/ | ||
|
||
|
This file contains 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
This file contains 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