TECH;Update to new Jenkins pipeline
This commit is contained in:
parent
ee5d1cac8d
commit
13aefcf759
3 changed files with 12 additions and 25 deletions
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
|
@ -1,21 +1,8 @@
|
||||||
@Library('jenkins-pipeline-lib@sonar-agent') _
|
@Library('jenkins-pipeline-lib@tech/refactor')
|
||||||
|
import FrontendBuild
|
||||||
|
|
||||||
setup {
|
FrontendBuild({
|
||||||
name = 'treejs'
|
name = 'treejs'
|
||||||
key = 'TREEJS'
|
port = "91:80"
|
||||||
port = '91'
|
runSonar = true
|
||||||
}
|
})
|
||||||
|
|
||||||
node {
|
|
||||||
checkCodeStability({})
|
|
||||||
|
|
||||||
release({
|
|
||||||
publishToNPM({
|
|
||||||
sh 'npm run build:module'
|
|
||||||
sh 'npx lerna run ci:publish'
|
|
||||||
})
|
|
||||||
publishToDocker()
|
|
||||||
})
|
|
||||||
|
|
||||||
deploy();
|
|
||||||
}
|
|
||||||
|
|
|
@ -19,18 +19,13 @@ module.exports = {
|
||||||
test_settings: {
|
test_settings: {
|
||||||
localhost: Object.assign(
|
localhost: Object.assign(
|
||||||
{
|
{
|
||||||
launch_url: 'http://192.168.0.120:' + config.LOCALHOST_PORT,
|
launch_url: 'http://192.168.0.97:' + config.LOCALHOST_PORT,
|
||||||
},
|
},
|
||||||
setting
|
setting
|
||||||
),
|
),
|
||||||
ci: Object.assign(
|
ci: Object.assign(
|
||||||
{
|
{
|
||||||
launch_url: 'http://10.5.0.2:' + config.E2E_PORT,
|
launch_url: 'http://10.5.0.2:' + config.E2E_PORT,
|
||||||
screenshots : {
|
|
||||||
enabled : true,
|
|
||||||
on_failure : true,
|
|
||||||
path : "./screens"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
setting
|
setting
|
||||||
),
|
),
|
||||||
|
|
5
sonar-project.properties
Normal file
5
sonar-project.properties
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
sonar.projectKey=TREEJS
|
||||||
|
sonar.projectName=treejs
|
||||||
|
sonar.inclusions=packages/**
|
||||||
|
sonar.coverage.exclusions=**/__tests__/**
|
||||||
|
sonar.javascript.lcov.reportPaths=temp/jest/lcov.info
|
Loading…
Add table
Reference in a new issue