-
OneDev site expects
index.htmlto be directly under/path/to/onedev/site/projects/2/site. If it is inside a sub directory, please changefrom directoryproperty of publish site step to be the sub directory name. -
OneDev site expects
index.htmlto be directly under/path/to/onedev/site/projects/2/site. If it is inside a sub directory, please changefrom directoryproperty of publish site step to be the sub directory name.I set up a test repository with
index.htmlandonedev-buildspec.ymlboth in ROOT.
Here the contents of
onedev-buildspec.yml:jobs: - name: Publish Site steps: - !PublishSiteStep name: Publish artifacts: index.html condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL retryCondition: never maxRetries: 3 retryDelay: 30 timeout: 3600"Publish Site" build step is Successful, but still
Site file not found. I wonder if there is anything we got wrong or missed.Please let me know if any more information is needed. Thank you!
-
Please add a checkout step before publish site step.
-
The site has been successfully built, but the CSS and JS files in the
index.htmlfile cannot be accessed. The browser's devtool outputsUncaught SyntaxError: Unexpected identifier 'file'. The files can be found in the repository, and they are exist, but whyindex.htmlcan't import them? If I directly access these CSS and JS files in the URL address, the browser will displaySite file not found: (file pathโฆ)๐ -
Specify artifacts of publish site step to include all files for the site, not just index.html. For instance
**will publish all files from job working directory -
Thank you for your reply, the problems mentioned above is solved. ๐ > Specify artifacts of publish site step to include all files for the site, not just index.html. For instance
**will publish all files from job working directory -
Previous Value Current Value Open
Closed
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Hello Robin,
Hope everything goes well.
We have created a repository and successfully published a site by "Publish Site" build step, however the site could not find index page which dose exist in repository (in root).

Can you help us in solving this problem?