Skip to content

Commit

Permalink
chore: cleanup JenkinsCoverage redirector
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Apr 23, 2019
1 parent 9c935d8 commit 1b0d657
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions services/jenkins/jenkins-coverage-redirector.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@

const { redirector } = require('..')

module.exports = [
redirector({
category: 'coverage',
route: {
base: 'jenkins',
pattern: ':coverageFormat(j|c)/:protocol(http|https)/:host/:job+',
},
transformPath: ({ coverageFormat, protocol, host, job }) =>
`/jenkins/coverage/${
coverageFormat === 'j' ? 'jacoco' : 'cobertura'
}/${protocol}/${host}/${job}`,
dateAdded: new Date('2019-04-20'),
}),
]
module.exports = redirector({
category: 'coverage',
route: {
base: 'jenkins',
pattern: ':coverageFormat(j|c)/:protocol(http|https)/:host/:job+',
},
transformPath: ({ coverageFormat, protocol, host, job }) =>
`/jenkins/coverage/${
coverageFormat === 'j' ? 'jacoco' : 'cobertura'
}/${protocol}/${host}/${job}`,
dateAdded: new Date('2019-04-20'),
})

0 comments on commit 1b0d657

Please sign in to comment.