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
76565cba
Commit
76565cba
authored
Nov 14, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qg
parent
a3738069
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
Stage.groovy
src/org/qg/Stage.groovy
+1
-1
Utils.groovy
src/org/qg/Utils.groovy
+1
-1
standardPipeline.groovy
vars/standardPipeline.groovy
+37
-0
No files found.
src/org/qg/Stage.groovy
View file @
76565cba
// src/org/foo/Stage.groovy
// src/org/foo/Stage.groovy
package
org.
foo
;
package
org.
qg
;
def
debug
()
{
def
debug
()
{
print
"123"
print
"123"
...
...
src/org/qg/Utils.groovy
View file @
76565cba
// src/org/foo/Utils.groovy
// src/org/foo/Utils.groovy
package
org.
foo
;
package
org.
qg
;
def
contextDir
(
workspace
)
{
def
contextDir
(
workspace
)
{
uuid
=
UUID
.
randomUUID
().
toString
()
uuid
=
UUID
.
randomUUID
().
toString
()
...
...
vars/standardPipeline.groovy
0 → 100644
View file @
76565cba
import
org.qg
def
call
(
body
)
{
def
config
=
[:]
body
.
resolveStrategy
=
Closure
.
DELEGATE_FIRST
body
.
delegate
=
config
body
()
node
{
try
{
stage
(
'Clone'
)
{
checkout
scm
}
stage
(
'Build'
)
{
sh
"echo 'building ${config.projectName} ...'"
}
stage
(
'Tests'
)
{
parallel
'static'
:
{
sh
"echo 'shell scripts to run static tests...'"
},
'unit'
:
{
sh
"echo 'shell scripts to run unit tests...'"
},
'integration'
:
{
sh
"echo 'shell scripts to run integration tests...'"
}
}
stage
(
'Deploy'
)
{
sh
"echo 'deploying to server ${config.serverDomain}...'"
}
}
catch
(
err
)
{
currentBuild
.
result
=
'FAILED'
throw
err
}
}
}
\ No newline at end of file
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