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
ef183a9e
Commit
ef183a9e
authored
Mar 27, 2021
by
温海元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change the url for docker server
parent
98d3a48c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
StageBucket.groovy
src/org/qg/tools/StageBucket.groovy
+1
-1
debugPipeline.groovy
vars/debugPipeline.groovy
+1
-1
qgCiDockerImageMaker.groovy
vars/qgCiDockerImageMaker.groovy
+2
-2
qgDockerPiplineWithDockerSlaveTke2.groovy
vars/qgDockerPiplineWithDockerSlaveTke2.groovy
+2
-2
No files found.
src/org/qg/tools/StageBucket.groovy
View file @
ef183a9e
...
...
@@ -36,7 +36,7 @@ def dockerbuild_and_push(buildNumber, branchName, harborGroup, systemName, conte
imageTag
=
"192.168.4.4/${harborGroup}/${systemName}:${safeBranchName}-${buildNumber}"
withDockerServer
([
uri:
"tcp://1
92.168.4.96
:2375/"
])
{
withDockerServer
([
uri:
"tcp://1
72.29.1.15
:2375/"
])
{
withDockerRegistry
([
credentialsId:
'harbor-qajenkins'
,
url:
"http://192.168.4.4"
])
{
def
image
=
docker
.
build
(
imageTag
,
"--build-arg SYSTEM_NAME=${systemName} ${contextDir}"
)
image
.
push
()
...
...
vars/debugPipeline.groovy
View file @
ef183a9e
...
...
@@ -45,7 +45,7 @@ def call(body) {
try
{
sh
"mkdir -p ${contextDir}"
withDockerServer
([
uri:
"tcp://1
92.168.4.96
:2375/"
])
{
withDockerServer
([
uri:
"tcp://1
72.29.1.15
:2375/"
])
{
def
volume
=
"-v /root/.m2:/root/.m2 "
volume
+=
"-v /home/quant_group/qg-dockerfiles:/home/quant_group/qg-dockerfiles "
...
...
vars/qgCiDockerImageMaker.groovy
View file @
ef183a9e
...
...
@@ -53,7 +53,7 @@ def call(body) {
}
withDockerServer
([
uri:
"tcp://1
92.168.4.96
:2375/"
])
{
withDockerServer
([
uri:
"tcp://1
72.29.1.15
:2375/"
])
{
_utils
.
beautyEcho
(
"checkout & build < ${systemName} : ${branchName} >"
,
"stage"
)
dir
(
systemName
){
branchHashCode
=
_stage
.
check_and_build
(
buildType
,
systemName
,
branchName
,
contextDir
)
...
...
@@ -63,7 +63,7 @@ def call(body) {
/* 3 */
withDockerServer
([
uri:
"tcp://1
92.168.4.96
:2375/"
])
{
withDockerServer
([
uri:
"tcp://1
72.29.1.15
:2375/"
])
{
_utils
.
beautyEcho
(
"make docker image"
,
"stage"
)
_stage
.
dockerbuild_and_push
(
imageTagInfo
,
buildNumber
,
systemName
,
branchName
,
cluster
,
timeStemp
,
contextDir
,
branchHashCode
)
...
...
vars/qgDockerPiplineWithDockerSlaveTke2.groovy
View file @
ef183a9e
...
...
@@ -46,7 +46,7 @@ def call(body) {
/* 2 */
echo
systemName
withDockerServer
([
uri:
"tcp://1
92.168.4.96
:2375/"
])
{
withDockerServer
([
uri:
"tcp://1
72.29.1.15
:2375/"
])
{
_utils
.
beautyEcho
(
"checkout & build < ${systemName} : ${branchName} >"
,
"stage"
)
dir
(
systemName
){
branchHashCode
=
_stage
.
check_and_build
(
config
.
buildType
,
systemName
,
branchName
,
contextDir
)
...
...
@@ -63,7 +63,7 @@ def call(body) {
}
/* 3 */
withDockerServer
([
uri:
"tcp://1
92.168.4.96
:2375/"
])
{
withDockerServer
([
uri:
"tcp://1
72.29.1.15
:2375/"
])
{
_utils
.
beautyEcho
(
"make docker image"
,
"stage"
)
def
regex
=
"[`,./;\\[\\]&<>?:\"()|-]+"
def
k8sSystemName
=
systemName
.
replaceAll
(
"_"
,
"-"
).
toLowerCase
()
...
...
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