Skip to content
Snippets Groups Projects

jobs/templates: Add GitLab suport for debian packages related jobs

2 unresolved threads
Compare and
12 files
+ 138
33
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -36,7 +36,12 @@ pipeline {
$class: 'GitSCM',
branches: [[name: "debian/${params.DESTINATION}"], [name: "refs/tags/${params.GIT_TAG}"]],
userRemoteConfigs: [[
{%- if not gitlab_project %}
url: "https://forge.softwareheritage.org/source/${repo_name}.git",
{%- else %}
credentialsId: 'gitlab-public-ci-ssh',
url: '{{gitlab_ssh_url}}:{{gitlab_project_name}}.git',
{%- endif %}
]],
])
}
@@ -126,7 +131,11 @@ pipeline {
expression { backport_ok }
}
steps {
{%- if not gitlab_project %}
sshagent (credentials: ['jenkins-public-ci-ssh']) {
{%- else %}
sshagent (credentials: ['gitlab-public-ci-ssh']) {
{%- endif %}
script {
def git_push = 'git push --follow-tags --all'
if (params.DRY_RUN) {
Loading