Skip to content
Snippets Groups Projects
Commit aca7d56f authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

chore(dlcm-portal): change scm tag

change scm tag and use GitSCM in Jenkinsfile
parent d96a8041
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env groovy
pipeline{
agent any
......@@ -27,10 +29,18 @@ pipeline{
stage ('Checkout'){
steps{
cleanWs()
checkout scm
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'LocalBranch', localBranch: 'master']],
submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'GitLabRelease', url: 'git@gitlab.unige.ch:dlcm/ui/dlcm-portal.git']]
])
}
}
stage ('Install node_modules'){
steps{
sh 'npm install --verbose -d'
......@@ -65,7 +75,7 @@ pipeline{
stage("Release") {
when {
allOf {
branch "master"
branch 'master'
expression { params.RELEASE }
}
}
......
......@@ -20,7 +20,7 @@
<scm>
<connection>scm:git:git@gitlab.unige.ch:dlcm/ui/dlcm-portal.git</connection>
<tag>master</tag>
<tag>HEAD</tag>
</scm>
<distributionManagement>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment