-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I685d427ea24fa0f6ea2c00605fb342e627bd9dc7 Signed-off-by: Tu Ton <[email protected]>
- Loading branch information
1 parent
967c014
commit dffa6bf
Showing
44 changed files
with
677 additions
and
182 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 |
---|---|---|
@@ -1,5 +1,99 @@ | ||
capellaAddon { | ||
url = 'https://github.com/eclipse/capella-vpms.git' | ||
name = 'vpms' | ||
targetPlatform = 'releng/org.polarsys.capella.vp.ms.target/pom.xml' | ||
} | ||
pipeline { | ||
agent { | ||
label 'migration' | ||
} | ||
|
||
tools { | ||
maven 'apache-maven-latest' | ||
jdk 'openjdk-jdk14-latest' | ||
} | ||
|
||
environment { | ||
BUILD_KEY = (github.isPullRequest() ? CHANGE_TARGET : BRANCH_NAME).replaceFirst(/^v/, '') | ||
CAPELLA_PRODUCT_PATH = "${WORKSPACE}/capella/capella" | ||
} | ||
|
||
stages { | ||
|
||
stage('Generate Target Platform') { | ||
steps { | ||
script { | ||
if(github.isPullRequest()){ | ||
github.buildStartedComment() | ||
} | ||
|
||
currentBuild.description = BUILD_KEY | ||
|
||
sh 'env' | ||
sh 'mvn clean verify -f releng/org.polarsys.capella.vp.ms.target/pom.xml' | ||
sh 'cat releng/org.polarsys.capella.vp.ms.target/tp/capella.target-definition.target' | ||
} | ||
} | ||
} | ||
|
||
stage('Build and Package') { | ||
steps { | ||
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) { | ||
script { | ||
def customParams = github.isPullRequest() ? '-DSKIP_SONAR=true' : '-Psign' | ||
|
||
sh "mvn -Djacoco.skip=true -DjavaDocPhase=none ${customParams} clean verify -f pom.xml" | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Deploy to Nightly') { | ||
steps { | ||
script { | ||
def deploymentDirName = | ||
(github.isPullRequest() ? "${BUILD_KEY}-${BRANCH_NAME}-${BUILD_ID}" : "${BRANCH_NAME}-${BUILD_ID}") | ||
.replaceAll('/','-') | ||
|
||
deployer.addonNightlyDropins("${WORKSPACE}/releng/org.polarsys.capella.vp.ms.site/target/*-dropins-*.zip", deploymentDirName) | ||
deployer.addonNightlyUpdateSite("${WORKSPACE}/releng/org.polarsys.capella.vp.ms.site/target/*-updateSite-*.zip", deploymentDirName) | ||
|
||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
post { | ||
always { | ||
archiveArtifacts artifacts: '**/*.log, *.log, *.xml, **/*.layout, *.exec' | ||
} | ||
|
||
success { | ||
script { | ||
if(github.isPullRequest()){ | ||
github.buildSuccessfullComment() | ||
} | ||
} | ||
} | ||
|
||
unstable { | ||
script { | ||
if(github.isPullRequest()){ | ||
github.buildUnstableComment() | ||
} | ||
} | ||
} | ||
|
||
failure { | ||
script { | ||
if(github.isPullRequest()){ | ||
github.buildFailedComment() | ||
} | ||
} | ||
} | ||
|
||
aborted { | ||
script { | ||
if(github.isPullRequest()){ | ||
github.buildAbortedComment() | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
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
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
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
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
4 changes: 2 additions & 2 deletions
4
plugins/org.polarsys.capella.vp.ms.tests/model/MsDiagramTest1/MsDiagramTest1.afm
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,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<metadata:Metadata xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:metadata="http://www.polarsys.org/kitalpha/ad/metadata/1.0.0" id="_UaMv4GIQEeuu9q00hCGACA"> | ||
<viewpointReferences id="_Ua0a8GIQEeuu9q00hCGACA" vpId="org.polarsys.capella.core.viewpoint" version="5.1.0"/> | ||
<viewpointReferences id="_YsvAcGIuEeuXqNx4NpkSGw" vpId="org.polarsys.capella.vp.ms" version="0.17.0.qualifier"/> | ||
<viewpointReferences id="_Ua0a8GIQEeuu9q00hCGACA" vpId="org.polarsys.capella.core.viewpoint" version="6.0.0"/> | ||
<viewpointReferences id="_YsvAcGIuEeuXqNx4NpkSGw" vpId="org.polarsys.capella.vp.ms" version="0.19.0.qualifier"/> | ||
</metadata:Metadata> |
Oops, something went wrong.