Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inject foreman version for stable plugin builds #421

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions theforeman.org/pipelines/lib/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ def setup_sources_plugin(project, os, version, repoowner, pull_request = false)
last_commit = git_hash()
add_automated_debian_changelog('plugins', package_version, repoowner, last_commit)
}
inject_foreman_release_version(version)
}

return "${build_dir}/${package_dir}"
Expand Down Expand Up @@ -435,6 +436,13 @@ def inject_debian_release_version(os) {
sh(script: "sed -i '1 s/)/${suffix})/' debian/changelog", label: "inject Debian release into package version")
}

def inject_foreman_release_version(version) {
if (version != 'nightly') {
def suffix="~fm${version}"
sh(script: "sed -i '1 s/)/${suffix})/' debian/changelog", label: "inject Foreman release into package version")
}
}

def execute_pbuilder(build_dir, os, version) {
dir(build_dir) {
try {
Expand Down