Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ym
jenkins
Commits
88fdf994
Commit
88fdf994
authored
May 10, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20170121: Job [HRB_APP_Commit_Build] configuration updated
Change performed by §N¨ήS
parent
934ac0d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
26 deletions
+64
-26
jobs/HRB_APP_Commit_Build/config.xml
jobs/HRB_APP_Commit_Build/config.xml
+64
-26
No files found.
jobs/HRB_APP_Commit_Build/config.xml
View file @
88fdf994
...
@@ -43,35 +43,73 @@ Jenkins will send email to RD Team if build fails.</description>
...
@@ -43,35 +43,73 @@ Jenkins will send email to RD Team if build fails.</description>
<disabled>
false
</disabled>
<disabled>
false
</disabled>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
<blockBuildWhenDownstreamBuilding>
false
</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>
false
</blockBuildWhenUpstreamBuilding>
<blockBuildWhenUpstreamBuilding>
false
</blockBuildWhenUpstreamBuilding>
<triggers>
<triggers/>
<com.dabsquared.gitlabjenkins.GitLabPushTrigger
plugin=
"gitlab-plugin@1.5.12"
>
<spec></spec>
<triggerOnPush>
true
</triggerOnPush>
<triggerOnMergeRequest>
true
</triggerOnMergeRequest>
<triggerOnPipelineEvent>
false
</triggerOnPipelineEvent>
<triggerOnAcceptedMergeRequest>
false
</triggerOnAcceptedMergeRequest>
<triggerOnClosedMergeRequest>
false
</triggerOnClosedMergeRequest>
<triggerOnApprovedMergeRequest>
false
</triggerOnApprovedMergeRequest>
<triggerOpenMergeRequestOnPush>
never
</triggerOpenMergeRequestOnPush>
<triggerOnNoteRequest>
true
</triggerOnNoteRequest>
<noteRegex>
Jenkins please retry a build
</noteRegex>
<ciSkip>
true
</ciSkip>
<skipWorkInProgressMergeRequest>
true
</skipWorkInProgressMergeRequest>
<setBuildDescription>
true
</setBuildDescription>
<branchFilterType>
RegexBasedFilter
</branchFilterType>
<includeBranchesSpec></includeBranchesSpec>
<excludeBranchesSpec></excludeBranchesSpec>
<sourceBranchRegex>
(.*release.*|.*hotfix.*|.*develop|.*master)
</sourceBranchRegex>
<targetBranchRegex></targetBranchRegex>
<secretToken>
{AQAAABAAAAAQOWG138LyDlzsNOkwf4VcngJKesFwnZvSqzefJtqP9F8=}
</secretToken>
<pendingBuildName></pendingBuildName>
<cancelPendingBuildsOnUpdate>
false
</cancelPendingBuildsOnUpdate>
</com.dabsquared.gitlabjenkins.GitLabPushTrigger>
</triggers>
<concurrentBuild>
false
</concurrentBuild>
<concurrentBuild>
false
</concurrentBuild>
<builders>
<builders>
<hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>
npm run test
</command>
<command>
#!/bin/groovy
pipeline {
tools {
nodejs
'
default-nodejs
'
}
stages {
stage(
'
Startup
'
) {
steps {
script {
sh
'
npm install
'
}
}
}
stage(
'
Test
'
) {
steps {
script {
sh
'
npm run test
'
}
}
post {
always {
step([$class:
'
CoberturaPublisher
'
, coberturaReportFile:
'
output/coverage/jest/cobertura-coverage.xml
'
])
}
}
}
stage(
'
Build
'
) {
steps {
script {
sh
'
npm start
'
sh
'
npm pack
'
}
}
}
stage(
'
Deploy
'
) {
when {
expression {
currentBuild.result == null || currentBuild.result ==
'
SUCCESS
'
}
}
steps {
script {
def server = Artifactory.server
'
My_Artifactory
'
uploadArtifact(server)
}
}
}
}
}
def uploadArtifact(server) {
def uploadSpec =
"""
{
"
files
"
: [
{
"
pattern
"
:
"
continuous-test-code-coverage-guide*.tgz
"
,
"
target
"
:
"
npm-stable/
"
}
]
}
"""
server.upload(uploadSpec)
def buildInfo = Artifactory.newBuildInfo()
server.upload spec: uploadSpec, buildInfo: buildInfo
server.publishBuildInfo buildInfo
}
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
<publishers>
<publishers>
...
...
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