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
3653ca60
Commit
3653ca60
authored
Jun 13, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fff
parent
16940447
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
qgCiDockerImageMaker.groovy
vars/qgCiDockerImageMaker.groovy
+17
-4
No files found.
vars/qgCiDockerImageMaker.groovy
View file @
3653ca60
...
...
@@ -13,9 +13,9 @@ def call(body) {
def
env
=
body
.
env
def
gitRepo
=
env
.
GIT_REPO
def
systemName
=
env
.
GIT_
REP
O_NAME
def
branchName
=
env
.
BRANCH_NAME
.
replaceAll
(
"refs/heads/"
,
""
)
def
systemName
=
env
.
GIT_
PR
O_NAME
def
branchName
=
env
.
BRANCH_NAME
def
buildType
=
env
.
BUILD_TYPE
==
"ui"
?
"lua-ui"
:
env
.
BUILD_TYPE
/* def namespace = env.NAMESPACE*/
...
...
@@ -26,7 +26,7 @@ def call(body) {
def
harborHost
=
env
.
HARBOR_HOST
//192.168.4.4
def
imageTag
=
env
.
IMAGE_TAG
// Library/xyqb:master-1213123
def
contextDir
=
_stage
.
contextMkdir
(
"${
gitRepo
}-${timeStemp}"
)
def
contextDir
=
_stage
.
contextMkdir
(
"${
systemName
}-${timeStemp}"
)
def
timeStemp
=
env
.
TIMESTEMP
...
...
@@ -35,6 +35,19 @@ def call(body) {
def
imageTagInfo
=[]
def
schemaInfo
=
""
+
"\033[32m############################################\n"
+
"# GIT_PRO_NAME:${systemName}\n"
+
"# BRANCH_NAME:${branchName}\n"
+
"# BUILD_TYPE:${buildType}\n"
+
"# HARBOR_HOST:${harborHost}\n"
+
"# IMAGE_TAG:${imageTag}\n"
+
"############################################\033[0m"
ansiColor
(
'xterm'
)
{
echo
schemaInfo
}
node
{
try
{
...
...
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