-
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
6483f86
commit 7144b49
Showing
7 changed files
with
176 additions
and
53 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,75 @@ | ||
#! 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()}"; | ||
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") | ||
sh "mv dist/ ${env.SOURCE_STASH_NAME}" | ||
stash(name: env.SOURCE_STASH_NAME, includes: "${env.SOURCE_STASH_NAME}/**/*") | ||
} | ||
|
||
def venv_py = "${env.WORKSPACE}/compute_endpoint/packaging/venv/bin/python" | ||
def py_full_version = sh(script: "'${venv_py}' -c 'import sys; print(\"{}.{}\".format(*sys.version_info))'", returnStdout: true).trim() | ||
def (py_epoch_version, py_major_version) = py_full_version.tokenize(".") | ||
def pkg_version = "not yet set" | ||
|
||
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" | ||
} | ||
} | ||
} | ||
stage ("Build packages") { | ||
steps { | ||
script { | ||
lock(resource: 'globus-compute-agent-build') { | ||
parallel "debian": { | ||
def extra_tarball_map = [ | ||
prereqs: env.PREREQS_TARBALL | ||
] | ||
env.DEB_ARTIFACTS_STASH = buildDebian( | ||
env.SOURCE_STASH_NAME, | ||
env.PKG_TARBALL, | ||
require_gcs5_repo: true, | ||
extra_tarball_map: extra_tarball_map | ||
) | ||
}, "rpm": { | ||
env.RPM_ARTIFACTS_STASH = buildMock( | ||
env.SOURCE_STASH_NAME, | ||
env.PKG_TARBALL, | ||
true | ||
) | ||
}, "failFast": false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
@PACKAGE_NAME@ (@PACKAGE_VERSION@.@distro@) @distro@; urgency=low | ||
@PACKAGE_NAME@ (@PACKAGE_VERSION@-1.@distro@) @distro@; urgency=low | ||
|
||
* Initial release as a Debian package | ||
|
||
* Includes support for multi-user Globus Compute Endpoints; see | ||
https://globus-compute.readthedocs.io/ for more information. | ||
|
||
-- Maintainer: Globus Support <[email protected]> Mon, 08 Apr 2024 11:01:30 -0500 | ||
-- Maintainer: Globus Toolkit <[email protected]> Mon, 08 Apr 2024 11:01:30 -0500 |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
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 | ||
Maintainer: Globus Toolkit <[email protected]> | ||
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