Changeset View
Changeset View
Standalone View
Standalone View
jobs/tools/setup-gitlab-webhooks.groovy.j2
pipeline { | pipeline { | ||||
agent any | agent any | ||||
environment { | environment { | ||||
GITLAB_TOKEN = credentials("jenkins-gitlab-token") | GITLAB_TOKEN = credentials("jenkins-gitlab-token") | ||||
} | } | ||||
stages { | stages { | ||||
stage('Checkout Repository') { | stage('Checkout Repository') { | ||||
steps { | steps { | ||||
checkout([ | checkout([ | ||||
$class: 'GitSCM', | $class: 'GitSCM', | ||||
branches: [[name: 'master']], | branches: [[name: 'master']], | ||||
userRemoteConfigs: [[ | userRemoteConfigs: [[ | ||||
url: "http://forge.softwareheritage.org/source/swh-jenkins-jobs.git", | url: "${gitlab_url}/{{gitlab_project_name}}.git", | ||||
]], | ]], | ||||
]) | ]) | ||||
} | } | ||||
} | } | ||||
stage('Setup gitlab integration') { | stage('Setup gitlab integration') { | ||||
steps { | steps { | ||||
script { | script { | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |