This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 573121: Allow the terminal to be verified on its own (#49)
- Loading branch information
1 parent
e58b9bf
commit 1e403d6
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
jenkins/pipelines/cdt/verify/cdt-verify-terminal-only-pipeline.Jenkinsfile
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
pipeline { | ||
agent { | ||
kubernetes { | ||
yamlFile 'jenkins/pod-templates/cdt-full-pod-standard.yaml' | ||
} | ||
} | ||
options { | ||
timestamps() | ||
} | ||
stages { | ||
stage('Git Clone') { | ||
steps { | ||
container('cdt') { | ||
timeout(activity: true, time: 20) { | ||
/* Running the git fetch command manually is a workaround. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=560283#c16 */ | ||
sh 'git config remote.origin.url https://git.eclipse.org/r/cdt/org.eclipse.cdt.git' | ||
/* Workaround for Bug 568904 */ | ||
sh 'git config protocol.version 1' | ||
sh 'git fetch --no-tags --force --progress -- https://git.eclipse.org/r/cdt/org.eclipse.cdt.git +refs/heads/*:refs/remotes/origin/*' | ||
} | ||
checkout([$class: 'GitSCM', branches: [[name: '**']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'BuildChooserSetting', buildChooser: [$class: 'GerritTriggerBuildChooser']], [$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true]], submoduleCfg: [], userRemoteConfigs: [[refspec: '$GERRIT_REFSPEC', url: 'https://git.eclipse.org/r/cdt/org.eclipse.cdt.git']]]) | ||
} | ||
} | ||
} | ||
stage('Run build and test Terminal') { | ||
steps { | ||
container('cdt') { | ||
timeout(activity: true, time: 20) { | ||
withEnv(['MAVEN_OPTS=-Xmx768m -Xms768m']) { | ||
sh "/usr/share/maven/bin/mvn \ | ||
clean verify -B -V \ | ||
-Dmaven.test.failure.ignore=true \ | ||
-DexcludedGroups=flakyTest,slowTest \ | ||
-f terminal/pom.xml \ | ||
-P only-terminal \ | ||
-DskipDoc=true \ | ||
-Ddsf.gdb.tests.timeout.multiplier=50 \ | ||
-Dindexer.timeout=300 \ | ||
-Dmaven.repo.local=/home/jenkins/.m2/repository \ | ||
--settings /home/jenkins/.m2/settings.xml \ | ||
" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
container('cdt') { | ||
junit '*/*/target/surefire-reports/*.xml' | ||
archiveArtifacts '*/*/target/surefire-reports/**,**/screenshots/*.jpeg,**/target/**/*.log,terminal/repo/target/repository/**' | ||
} | ||
} | ||
} | ||
} |