fixed paths, moved package versions to separate file
This commit is contained in:
parent
00ee4eab8a
commit
57a57ec1fc
1 changed files with 54 additions and 41 deletions
35
Jenkins/BETA-phabricator-linux/Jenkinsfile
vendored
35
Jenkins/BETA-phabricator-linux/Jenkinsfile
vendored
|
@ -41,14 +41,18 @@ pipeline {
|
||||||
currentBuild.displayName += " D${REV_ID}"
|
currentBuild.displayName += " D${REV_ID}"
|
||||||
currentBuild.description = "<a href='https://reviews.llvm.org/D${REV_ID}'>D${REV_ID}</a>"
|
currentBuild.description = "<a href='https://reviews.llvm.org/D${REV_ID}'>D${REV_ID}</a>"
|
||||||
}
|
}
|
||||||
|
sh """
|
||||||
|
rm -rf ${RESULT_DIR}
|
||||||
|
mkdir -p ${RESULT_DIR}
|
||||||
|
"""
|
||||||
// Report versions of the installed packages.
|
// Report versions of the installed packages.
|
||||||
sh '''
|
sh """
|
||||||
echo Versions of various tools:
|
echo Versions of various tools: > ${RESULT_DIR}/package_version.log
|
||||||
clang --version
|
clang --version >> ${RESULT_DIR}/package_version.log
|
||||||
clang-tidy --version
|
clang-tidy --version >> ${RESULT_DIR}/package_version.log
|
||||||
ld.lld --version
|
ld.lld --version >> ${RESULT_DIR}/package_version.log
|
||||||
dpkg -l
|
dpkg -l >> ${RESULT_DIR}/package_version.log
|
||||||
'''
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("git checkout")
|
stage("git checkout")
|
||||||
|
@ -64,14 +68,12 @@ pipeline {
|
||||||
{
|
{
|
||||||
git url: 'https://github.com/google/llvm-premerge-checks.git'
|
git url: 'https://github.com/google/llvm-premerge-checks.git'
|
||||||
}
|
}
|
||||||
sh """
|
|
||||||
rm -rf ${RESULT_DIR}
|
|
||||||
mkdir -p ${RESULT_DIR}
|
|
||||||
"""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('CMake') {
|
stage('CMake') {
|
||||||
steps {
|
steps {
|
||||||
|
dir("${LLVM_DIR}")
|
||||||
|
{
|
||||||
script {
|
script {
|
||||||
success = false
|
success = false
|
||||||
failure_message = "Failed to run cmake"
|
failure_message = "Failed to run cmake"
|
||||||
|
@ -83,9 +85,12 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
stage('ninja all') {
|
stage('ninja all') {
|
||||||
steps {
|
steps {
|
||||||
|
dir("${LLVM_DIR}")
|
||||||
|
{
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
sh(script: "${SCRIPT_DIR}/run_ninja.sh all")
|
sh(script: "${SCRIPT_DIR}/run_ninja.sh all")
|
||||||
|
@ -97,8 +102,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('ninja check-all') {
|
stage('ninja check-all') {
|
||||||
steps {
|
steps {
|
||||||
|
dir("${LLVM_DIR}")
|
||||||
|
{
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
sh(script: "${SCRIPT_DIR}/run_ninja.sh check-all")
|
sh(script: "${SCRIPT_DIR}/run_ninja.sh check-all")
|
||||||
|
@ -110,8 +118,12 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('linters') {
|
stage('linters') {
|
||||||
steps {
|
steps {
|
||||||
|
dir("${LLVM_DIR}")
|
||||||
|
{
|
||||||
|
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
sh(script: "${SCRIPT_DIR}/lint.sh")
|
sh(script: "${SCRIPT_DIR}/lint.sh")
|
||||||
|
@ -123,6 +135,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
|
Loading…
Reference in a new issue