TeamCity Build Reports HTML pages not loading CSS/JS - report

I'm following this link to show cucumber HTML reports in a Build Report Tab.
https://confluence.jetbrains.com/display/TCD18/Including+Third-Party+Reports+in+the+Build+Results
In my BuildConfiguration I refer my artifacts as
api/target/cucumber-html-reports/cucumber-html-reports/** => report.zip
In project, report tab "Start Page" is like this
report.zip!/overview-steps.html
The tab is generated and I see the HTML page. BUT it doesn't load CSS/JS nor does it let me navigate to hyperlinks to other pages.
I get the following error when I click any link
403 Forbidden: Requests from build artifacts pages are restricted: Only requests to the same build's artifacts are allowed from the build artifacts.

The issue was that TeamCity auto generates "Build configuration ID" in CamelCase naming convention. When the Report Tab was trying to access the artifact using this camel case URL it didn't found anything.
I changed my project & build configurations IDs to all lower case and it worked smoothly. I hope this helps somebody.

Related

Codemagic static Pages: Skip publishing to my_app.codemagic.app: no static content was generated

I am trying to publish the web version of my flutter app to Codemagic static Pages. I added a subdomain name and enabled the checkbox, but I get this line in the publishing logs:
Skip publishing to my_app.codemagic.app: no static content was generated
If I try to access the webpage https://my_app.codemagic.app I get:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Details>No such object: codemagic-app/my_app/index.html</Details>
</Error>
check if the "Building Web" step generated files and was finished without any warnings.
if "Building Web" step was skipped probably you don't have web folder in your repository

AWS Amplify cannot recognize new added file

New to Amplify. Following the tutorial on AWS and everything looks good.
Now I want to add a simple html file, called abc.html, just some basic html code for a test. But when I try to visit the url: https://www.yourdomain.com/abc.html, it redirects the url to https://www.yourdomain.com/abc/. So it basically doesn't recognize there is a file called abc.html. How can I add new files to Amplify?
From Amplify console, everything looks OK. It responded to the git push. Provision, build, deploy, verify are all green. It just can't recognize the new added file. Any suggestions?
I figure out the problem. Post it here in case people have the same problem.
It's a bug in Amplify web framework. If you access the file before the branch gets built and deployed, the web framework can't find the file. So it will show 404 page and record the url as 404. Later, even if you build and deploy the file through Amplify, the web framework still remembers the 404 response to the specific url. It won't refresh. That's why if you add a html file to the repo and access it before Amplify finishes deployment, the file is forever treated as not exist.

Uncaught SyntaxError: Unexpected token '<' - after deploying my react redux application using Firebase

I recently used Google's Firebase to deploy my application. But somehow something is going wrong. Please access the below link to view the exact error trace.
In my build, everything looks normal all the CSS files and JS files have the appropriate code but after the deployment all the Files have HTML, go through the Below URL and watch the console to have a better idea of the error.
https://workout-wfh.web.app/
View both Images to view the difference :
1. In the deployed application
In my local build
If you view the source of the deployed website, you'll see that the <script> tag is trying to load this URL:
https://workout-wfh.web.app/MohanVarma1965/workout.git/static/js/main.5cca3537.chunk.js
which doesn't exist and so is falling back to your default HTML content. It looks like your build process is generating absolute URLs that include your username and directory path. You should adjust your build tooling to leave out everything before /js.

Published project files ignored

I've been trying to publish my Visual Studio 2010 project. I do this by accessing a hard drive which corresponds to a URL, so X:\Options\Forms\HD\ corresponds to /HD. Yet when I go to the URL, it says I don't have a default.aspx page. Yet when I look in the corresponding file directory the default.aspx page is right there. Why is the browser ignoring it? Another issue I have is that not all of the files are getting published when I select the option in Visual Studio; many are left behind including my default.aspx.vb file.
To make sure files get published, make sure that they have the correct Build Action set (check the Properties window for the file). Especially, if it is set to None or if the files are not part of the solution/project they won't get published. The "Content" build action is a good choice for any file that just needs to be published.
Extra tip: for files that VS doesn't know the default build action is None. You can however configure VS to use whatever build action you want.
I've written about it here: http://blog.andreloker.de/post/2010/07/02/Visual-Studio-default-build-action-for-non-default-file-types.aspx
Also, I've created a simple tool that generates the necessary configuration file: http://tools.andreloker.de/dbag

Elimination of Aspx pages during Publish

I need to eliminate .apsx pages for my application for different locations basically.
How can I eliminate those pages during Publish time?
I have seen by making pages to Build Content to none. Is there any other alternate
solution?
Regards,
Sachin K
I would suggest using Web deployment project and follow these steps:
Add your WDP (web deployment project).
Right click on it and click on Open Project File.
in the wdproj file you will see a tag called <ItemGroup>.
Inside this tag add the following line:
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\FolderName\**\*.*" />
Save and close your wdproj file and that’s it.

Resources