Skip to content

Commit

Permalink
Merge pull request #56 from axonivy/mock-on-jenkins
Browse files Browse the repository at this point in the history
improve jenkins artifacts
  • Loading branch information
ivy-lgi authored Oct 16, 2024
2 parents a78ecda + 487a496 commit 01d92d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "Launch Standalone (Chrome)",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3002/?server=localhost:8081&app=designer&pmv=dataclass-test-project&file=dataclasses/dataclass/Data.d.json",
"url": "http://localhost:3002/?server=localhost:8081&app=designer&pmv=dataclass-test-project&file=dataclasses/dataclass/DataClass.d.json",
"preLaunchTask": "Start Standalone",
"postDebugTask": "Terminate All Tasks"
},
Expand Down
3 changes: 2 additions & 1 deletion build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ pipeline {
}
}
archiveArtifacts artifacts: '**/integrations/standalone/build/**', allowEmptyArchive: true
currentBuild.description = "<a href=${BUILD_URL}artifact/integrations/standalone/build/index.html>&raquo; Data Class Editor</a>"
currentBuild.description = "<a href=${BUILD_URL}artifact/integrations/standalone/build/index.html?server=localhost:8081&secure=false&app=designer&pmv=dataclass-test-project&file=dataclasses/dataclass/DataClass.d.json>&raquo; Data Class Editor</a><br>" +
"<a href=${BUILD_URL}artifact/integrations/standalone/build/mock.html>&raquo; Data Class Editor Mock</a>"

withChecks('ESLint') {
recordIssues enabledForFailure: true, publishAllIssues: true, aggregatingResults: true, tools: [esLint(pattern: 'packages/**/eslint.xml,integrations/**/eslint.xml')], qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]]
Expand Down
2 changes: 2 additions & 0 deletions integrations/standalone/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<directory>build</directory>
<excludes>
<exclude>favicon.ico</exclude>
<exclude>mock.html</exclude>
<exclude>*/mock*</exclude>
</excludes>
<outputDirectory>./META-INF/resources/dataclass-editor</outputDirectory>
</fileSet>
Expand Down
2 changes: 1 addition & 1 deletion integrations/standalone/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
build: {
outDir: 'build',
chunkSizeWarningLimit: 5000,
rollupOptions: { input: { index: './index.html' } }
rollupOptions: { input: { index: './index.html', mock: './mock.html' } }
},
server: { port: 3002 },
resolve: {
Expand Down

0 comments on commit 01d92d0

Please sign in to comment.