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
59834c38
Commit
59834c38
authored
May 10, 2019
by
YM-RD-AP01\ymadmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20170121: Job [CoberturaPublisher] configuration updated
Change performed by §N¨ήS
parent
556d0ea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
1 deletion
+72
-1
jobs/CoberturaPublisher/config.xml
jobs/CoberturaPublisher/config.xml
+72
-1
No files found.
jobs/CoberturaPublisher/config.xml
View file @
59834c38
<?xml version='1.1' encoding='UTF-8'?>
<flow-definition
plugin=
"workflow-job@2.32"
>
<description></description>
<keepDependencies>
false
</keepDependencies>
<properties/>
<properties>
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty
plugin=
"gitlab-plugin@1.5.12"
>
<gitLabConnection>
ylhealth
</gitLabConnection>
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
</properties>
<definition
class=
"org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition"
plugin=
"workflow-cps@2.67"
>
<script>
#!/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
}
</script>
<sandbox>
true
</sandbox>
</definition>
<triggers/>
<disabled>
false
</disabled>
</flow-definition>
\ 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