-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
25 changed files
with
405 additions
and
99 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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
catchError { | ||
def util = load('util.groovy') | ||
|
||
def label = "build-tics" | ||
|
||
def tiflashTag = ({ | ||
def m = ghprbCommentBody =~ /tiflash\s*=\s*([^\s\\]+)(\s|\\|$)/ | ||
if (m) { | ||
return "${m.group(1)}" | ||
} | ||
return params.tiflashTag ?: ghprbTargetBranch ?: 'master' | ||
}).call() | ||
|
||
podTemplate(name: label, label: label, instanceCap: 5, | ||
workspaceVolume: emptyDirWorkspaceVolume(memory: true), | ||
nodeSelector: 'role_type=slave', | ||
containers: [ | ||
containerTemplate(name: 'dockerd', image: 'docker:18.09.6-dind', privileged: true), | ||
containerTemplate(name: 'docker', image: 'hub.pingcap.net/zyguan/docker:build-essential', | ||
alwaysPullImage: true, envVars: [ | ||
envVar(key: 'DOCKER_HOST', value: 'tcp://localhost:2375'), | ||
], ttyEnabled: true, command: 'cat'), | ||
containerTemplate(name: 'builder', image: 'hub.pingcap.net/tiflash/tiflash-builder-ci', | ||
alwaysPullImage: true, ttyEnabled: true, command: 'cat', | ||
resourceRequestCpu: '4000m', resourceRequestMemory: '8Gi', | ||
resourceLimitCpu: '10000m', resourceLimitMemory: '30Gi'), | ||
]) { | ||
|
||
node(label) { | ||
|
||
dir("tics") { | ||
stage("Checkout") { | ||
container("docker") { | ||
sh """ | ||
archive_url=${FILE_SERVER_URL}/download/builds/pingcap/tics/cache/tics-repo_latest.tar.gz | ||
if [ ! -d contrib ]; then curl -sL \$archive_url | tar -zx --strip-components=1 || true; fi | ||
""" | ||
sh "chown -R 1000:1000 ./" | ||
// sh "if ! grep -q hub.pingcap.net /etc/hosts ; then echo '172.16.10.5 hub.pingcap.net' >> /etc/hosts; fi" | ||
} | ||
util.checkoutTiCSFull("${ghprbActualCommit}", "${ghprbPullId}") | ||
} | ||
stage("Build & Upload") { | ||
timeout(time: 70, unit: 'MINUTES') { | ||
container("builder") { | ||
sh "NPROC=5 BUILD_BRANCH=${ghprbTargetBranch} release-centos7/build/build-tiflash-ci.sh" | ||
sh "PULL_ID=${ghprbPullId} COMMIT_HASH=${ghprbActualCommit} release-centos7/build/upload-ci-build.sh" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
stage('Summary') { | ||
def duration = ((System.currentTimeMillis() - currentBuild.startTimeInMillis) / 1000 / 60).setScale(2, BigDecimal.ROUND_HALF_UP) | ||
def msg = "[#${ghprbPullId}: ${ghprbPullTitle}]" + "\n" + | ||
"${ghprbPullLink}" + "\n" + | ||
"${ghprbPullDescription}" + "\n" + | ||
"Build Result: `${currentBuild.currentResult}`" + "\n" + | ||
"Elapsed Time: `${duration} mins` " + "\n" + | ||
"${env.RUN_DISPLAY_URL}" | ||
|
||
echo "${msg}" | ||
|
||
if (currentBuild.currentResult != "SUCCESS") { | ||
echo "Send slack here ..." | ||
slackSend channel: '#jenkins-ci', color: 'danger', teamDomain: 'pingcap', tokenCredentialId: 'slack-pingcap-token', message: "${msg}" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
|
||
find_program (CCACHE_FOUND ccache) | ||
if (CCACHE_FOUND AND NOT CMAKE_CXX_COMPILER_LAUNCHER MATCHES "ccache" AND NOT CMAKE_CXX_COMPILER MATCHES "ccache") | ||
execute_process(COMMAND ${CCACHE_FOUND} "-V" OUTPUT_VARIABLE CCACHE_VERSION) | ||
string(REGEX REPLACE "ccache version ([0-9\\.]+).*" "\\1" CCACHE_VERSION ${CCACHE_VERSION} ) | ||
if (USE_CCACHE AND CCACHE_FOUND AND NOT CMAKE_CXX_COMPILER_LAUNCHER MATCHES "ccache" AND NOT CMAKE_CXX_COMPILER MATCHES "ccache") | ||
execute_process (COMMAND ${CCACHE_FOUND} "-V" OUTPUT_VARIABLE CCACHE_VERSION) | ||
execute_process (COMMAND ${CCACHE_FOUND} "-p" OUTPUT_VARIABLE CCACHE_CONFIG) | ||
string (REGEX REPLACE "ccache version ([0-9\\.]+).*" "\\1" CCACHE_VERSION ${CCACHE_VERSION}) | ||
|
||
if (CCACHE_VERSION VERSION_GREATER "3.2.0" OR NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
#message(STATUS "Using ${CCACHE_FOUND} ${CCACHE_VERSION}") | ||
set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_FOUND}) | ||
set_property (GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_FOUND}) | ||
message (STATUS "Using ccache: ${CCACHE_FOUND}, version ${CCACHE_VERSION}") | ||
message (STATUS "Show ccache config:") | ||
message ("${CCACHE_CONFIG}") | ||
set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_FOUND}) | ||
set_property (GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_FOUND}) | ||
else () | ||
message(STATUS "Not using ${CCACHE_FOUND} ${CCACHE_VERSION} bug: https://bugzilla.samba.org/show_bug.cgi?id=8118") | ||
message (STATUS "Not using ${CCACHE_FOUND} ${CCACHE_VERSION} bug: https://bugzilla.samba.org/show_bug.cgi?id=8118") | ||
endif () | ||
else () | ||
message (STATUS "Not using ccache ${CCACHE_FOUND}, USE_CCACHE=${USE_CCACHE}") | ||
endif () |
Submodule poco
updated
11 files
+2 −0 | .gitignore | |
+3 −1 | Crypto/src/OpenSSLInitializer.cpp | |
+8 −3 | Crypto/src/X509Certificate.cpp | |
+1 −1 | Data/SQLite/CMakeLists.txt | |
+71,753 −47,738 | Data/SQLite/src/sqlite3.c | |
+2,368 −978 | Data/SQLite/src/sqlite3.h | |
+1 −1 | Foundation/include/Poco/RecursiveDirectoryIteratorImpl.h | |
+1 −2 | Foundation/src/MD4Engine.cpp | |
+1 −2 | Foundation/src/MD5Engine.cpp | |
+1 −2 | Foundation/src/SHA1Engine.cpp | |
+59 −13 | NetSSL_OpenSSL/src/Context.cpp |
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
Oops, something went wrong.