Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
global-jenkinsfile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
global-jenkinsfile
Commits
4cc3475b
Commit
4cc3475b
authored
Jun 28, 2020
by
zhijie.xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换为海元的jenkins credentials
parent
e0f9b104
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
27 deletions
+27
-27
SonarStageBucket.groovy
src/org/qg/ci/SonarStageBucket.groovy
+2
-2
SonarStageBucketTke.groovy
src/org/qg/ci/SonarStageBucketTke.groovy
+1
-1
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+7
-7
StageBucketTke2.groovy
src/org/qg/docker_new/StageBucketTke2.groovy
+7
-7
StageBucketTkeNoDocker.groovy
src/org/qg/docker_new/StageBucketTkeNoDocker.groovy
+8
-8
StageBucket.groovy
src/org/qg/tools/StageBucket.groovy
+1
-1
debugPipeline.groovy
vars/debugPipeline.groovy
+1
-1
No files found.
src/org/qg/ci/SonarStageBucket.groovy
View file @
4cc3475b
...
...
@@ -14,9 +14,9 @@ def sonaar_check(GIT_REPO_NAME,GIT_BRANCH,currentPath){
sonarScanner
=
"/home/quant_group/jenkins_home/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonar/bin/sonar-scanner"
currentPath
=
sh
(
script:
'pwd'
,
returnStdout:
true
).
trim
()
git
branch:
"${GIT_BRANCH}"
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
"${GIT_REPO_SSH_URL}"
git
branch:
"${GIT_BRANCH}"
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
"${GIT_REPO_SSH_URL}"
/* git commit: "${GIT_BRANCH}", credentialsId: '
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
', url: "${GIT_REPO_SSH_URL}"*/
/* git commit: "${GIT_BRANCH}", credentialsId: '
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
', url: "${GIT_REPO_SSH_URL}"*/
sh
"${sonarScanner} -e \
-Dsonar.host.url=http://sonar.quantgroups.com \
...
...
src/org/qg/ci/SonarStageBucketTke.groovy
View file @
4cc3475b
...
...
@@ -28,7 +28,7 @@ def checkout(GIT_REPO,BRANCH_NAME){
body
=[:]
def
projectAttr
=
project_attr
(
GIT_REPO
)
git_path
=
projectAttr
[
"git_path"
]
git
branch:
"${BRANCH_NAME}"
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
"${git_path}"
git
branch:
"${BRANCH_NAME}"
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
"${git_path}"
def
branchHashCode
=
sh
(
script:
'git log -1 --pretty=%H'
,
returnStdout:
true
).
trim
()
echo
"branchHashCode: ${branchHashCode} with 'git log -1 --pretty=%H'"
body
[
"branchHash"
]
=
branchHashCode
...
...
src/org/qg/docker_new/StageBucket.groovy
View file @
4cc3475b
...
...
@@ -140,7 +140,7 @@ def checkout_java(systemName, branchName) {
def
projectAttr
=
project_attr
(
systemName
)
def
gitPath
=
projectAttr
[
"gitPath"
]
def
configPath
=
projectAttr
[
"configPath"
]
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
//if(systemName =="credit_league"){
// sh "cp -rf /home/quant_group/config_repository/java/${systemName}.properties ${configPath}/application.properties"
...
...
@@ -150,7 +150,7 @@ def checkout_java(systemName, branchName) {
def
checkout_python
(
systemName
,
branchName
)
{
def
projectAttr
=
project_attr
(
systemName
)
def
gitPath
=
projectAttr
[
"gitPath"
]
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
}
def
checkout_nodejs
(
systemName
,
branchName
)
{
...
...
@@ -173,7 +173,7 @@ def checkout_nodejs(systemName, branchName) {
echo
"${currentPath}/.git/hooks"
if
(
!
folder
.
exists
()){
echo
">>>>>>>>> first git clone"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
bowerFile
=
fileExists
'./bower.json'
if
(
bowerFile
)
{
sh
"bower install --allow-root"
...
...
@@ -183,7 +183,7 @@ def checkout_nodejs(systemName, branchName) {
echo
">>>>>>>>> not first git clone"
sh
"cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
sh
"chmod +x .git/hooks/post-checkout"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
}
sh
"npm install"
...
...
@@ -216,7 +216,7 @@ def checkout_luaui(systemName, branchName) {
echo
">>>>>>> first checkout project ${systemName}"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
bowerResult
=
ext_bower_install
()
def
npmResult
=
ext_npm_intall
()
...
...
@@ -244,7 +244,7 @@ def checkout_luaui(systemName, branchName) {
if
(!
packejson
.
exists
()){
echo
">>>>>>> is simple ui project"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
dist
=
fileExists
'./dist'
if
(!
dist
){
sh
"mkdir dist"
...
...
@@ -255,7 +255,7 @@ def checkout_luaui(systemName, branchName) {
sh
"cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
sh
"chmod +x .git/hooks/post-checkout"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
sh
"sudo npm install"
}
...
...
src/org/qg/docker_new/StageBucketTke2.groovy
View file @
4cc3475b
...
...
@@ -315,13 +315,13 @@ def checkout_java(systemName, branchName) {
def
projectAttr
=
project_attr
(
systemName
)
def
gitPath
=
projectAttr
[
"git_path"
]
def
configPath
=
projectAttr
[
"config_path"
]
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
}
def
checkout_python
(
systemName
,
branchName
)
{
def
projectAttr
=
project_attr
(
systemName
)
def
gitPath
=
projectAttr
[
"git_path"
]
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
}
def
checkout_nodejs
(
systemName
,
branchName
)
{
...
...
@@ -335,7 +335,7 @@ def checkout_nodejs(systemName, branchName) {
echo
"${currentPath}/.git/hooks"
if
(
!
folder
.
exists
()){
echo
">>>>>>>>> first git clone"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
bowerFile
=
fileExists
'./bower.json'
if
(
bowerFile
)
{
sh
"bower install --allow-root"
...
...
@@ -345,7 +345,7 @@ def checkout_nodejs(systemName, branchName) {
echo
">>>>>>>>> not first git clone"
// sh "cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
// sh "chmod +x .git/hooks/post-checkout"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
}
// sh "npm install"
}
...
...
@@ -373,7 +373,7 @@ def checkout_nodejs(systemName, branchName) {
if
(!
hookfolder
.
exists
()){
echo
">>>>>>> first checkout project ${systemName}"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
bowerResult
=
ext_bower_install
()
def
npmResult
=
ext_npm_intall
()
...
...
@@ -398,7 +398,7 @@ def checkout_nodejs(systemName, branchName) {
}
else
{
if
(!
packejson
.
exists
()){
echo
">>>>>>> is simple ui project"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
dist
=
fileExists
'./dist'
if
(!
dist
){
sh
"mkdir dist"
...
...
@@ -409,7 +409,7 @@ def checkout_nodejs(systemName, branchName) {
// sh "cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
// sh "chmod +x .git/hooks/post-checkout"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
sh
"npm install"
}
}
...
...
src/org/qg/docker_new/StageBucketTkeNoDocker.groovy
View file @
4cc3475b
...
...
@@ -247,7 +247,7 @@ def checkout(buildType,systemName, branchName) {
def
projectAttr
=
project_attr
(
systemName
)
def
gitPath
=
projectAttr
[
"git_path"
]
def
configPath
=
projectAttr
[
"config_path"
]
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
branchHashCode
=
sh
(
script:
'git log -1 --pretty=%H'
,
returnStdout:
true
).
trim
()
echo
"branchHashCode : ${branchHashCode} with 'git log -1 --pretty=%H'"
...
...
@@ -258,13 +258,13 @@ def checkout_java(systemName, branchName) {
def
projectAttr
=
project_attr
(
systemName
)
def
gitPath
=
projectAttr
[
"git_path"
]
def
configPath
=
projectAttr
[
"config_path"
]
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
}
def
checkout_python
(
systemName
,
branchName
)
{
def
projectAttr
=
project_attr
(
systemName
)
def
gitPath
=
projectAttr
[
"git_path"
]
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
}
def
checkout_nodejs
(
systemName
,
branchName
)
{
...
...
@@ -278,7 +278,7 @@ def checkout_nodejs(systemName, branchName) {
echo
"${currentPath}/.git/hooks"
if
(
!
folder
.
exists
()){
echo
">>>>>>>>> first git clone"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
bowerFile
=
fileExists
'./bower.json'
if
(
bowerFile
)
{
sh
"bower install --allow-root"
...
...
@@ -288,7 +288,7 @@ def checkout_nodejs(systemName, branchName) {
echo
">>>>>>>>> not first git clone"
// sh "cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
// sh "chmod +x .git/hooks/post-checkout"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
}
// sh "npm install"
}
...
...
@@ -316,7 +316,7 @@ def checkout_nodejs(systemName, branchName) {
if
(!
hookfolder
.
exists
()){
echo
">>>>>>> first checkout project ${systemName}"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
bowerResult
=
ext_bower_install
()
def
npmResult
=
ext_npm_intall
()
...
...
@@ -341,7 +341,7 @@ def checkout_nodejs(systemName, branchName) {
}
else
{
if
(!
packejson
.
exists
()){
echo
">>>>>>> is simple ui project"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
def
dist
=
fileExists
'./dist'
if
(!
dist
){
sh
"mkdir dist"
...
...
@@ -352,7 +352,7 @@ def checkout_nodejs(systemName, branchName) {
// sh "cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
// sh "chmod +x .git/hooks/post-checkout"
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
gitPath
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
gitPath
sh
"npm install"
}
}
...
...
src/org/qg/tools/StageBucket.groovy
View file @
4cc3475b
...
...
@@ -19,7 +19,7 @@ def prepare_eos(contextDir) {
}
def
checkout_eos
(
branchName
)
{
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
"git@git.quantgroup.cn:QA/eos.git"
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
"git@git.quantgroup.cn:QA/eos.git"
}
def
build_eos
(
contextDir
)
{
...
...
vars/debugPipeline.groovy
View file @
4cc3475b
...
...
@@ -58,7 +58,7 @@ def call(body) {
git_path
=
"git@gitabc.xyqb.com:data-riskcontrol/urge_dispatcher.git"
}
git
branch:
branchName
,
credentialsId:
'
e1ccb1ac-1282-4fb4-b766-530ca1a2a2db
'
,
url:
git_path
git
branch:
branchName
,
credentialsId:
'
c6be40a7-235a-46db-89b8-61cfcbcbc1c4
'
,
url:
git_path
sh
'mvn clean package -P test -D maven.test.skip=true'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment