How to use this appendix
Use this after something fails. Start with the symptom closest to what you are seeing.
Use this appendix when something has already failed. For preventative warnings, see Appendix H — Known Issues, Gotchas, and Things to Anticipate.
G.1 dotnet is not recognized
Symptom
Jenkins reports that dotnet cannot be found.
Check interactively
dotnet --info
Check from Jenkins
bat 'where dotnet'
bat 'dotnet --info'
Likely causes
- .NET SDK not installed;
- PATH not available to the Jenkins service;
- Jenkins service started before a PATH change;
- pipeline is running on a different agent than expected.
Resolution approach
- Confirm the SDK is installed.
- Confirm
dotnet --infoworks interactively. - Confirm Jenkins can locate it.
- Restart Jenkins only when appropriate after environment changes.
- Rerun the pipeline.
G.2 git is not recognized
Check:
git --version
and from Jenkins:
bat 'where git'
bat 'git --version'
Verify Git installation and the Jenkins service/agent PATH.
G.3 Pipeline builds locally but fails in CI
Compare:
- working directory;
- OS and shell;
- .NET SDK/runtime;
- Java/Jenkins environment;
- environment variables;
- credential availability;
- file path separators;
- files that exist locally but were never committed;
- case sensitivity;
- agent/runner image.
G.4 Test fails after a deliberate greeting change
This is expected if production code says:
Hello from Jenkins!
while the test still expects:
Hello, world!
Update the test only after confirming the failure was observed and understood.
G.5 Jenkins cannot clone the GitHub repository
Check:
- repository URL;
- repository visibility;
- GitHub credentials if private;
- Git installation on the Jenkins agent;
- branch name;
- network/DNS access from Jenkins;
- SCM configuration in the Pipeline job.
G.6 Static-site validation fails
Run locally:
powershell.exe -NoProfile -File .\scripts\Test-StaticSite.ps1
Check:
site/index.htmlexists;- the file is not empty;
- required HTML elements exist;
- expected H1 text matches;
- local CSS links point to real files.
G.7 AWS CLI is not recognized
Run:
aws --version
For this guide, prefer AWS CLI v2.
If Jenkins cannot find AWS CLI but your terminal can, check the Jenkins service/agent PATH.
G.8 AWS authentication fails
Do not fix this by placing a real key in source control.
Check:
- which identity the pipeline is expected to use;
- whether credentials were injected correctly;
- whether credentials are expired;
- whether the AWS region/configuration is correct;
- whether system clock skew is significant;
- whether IAM allows the requested action.
G.9 AccessDenied during S3 deployment
Check the exact operation that failed.
Common required capabilities for a sync can include listing the bucket/prefix and putting objects; deletion additionally requires delete permission.
Scope permissions to the demo bucket/prefix rather than granting broad account-wide access.
G.10 Site deployed but browser still shows old content
Possible causes:
- browser cache;
- CloudFront cache if CloudFront was added;
- deployed to the wrong bucket/prefix;
- pipeline deployed a different commit;
- HTML references cached assets.
Verify the S3 object itself before changing the pipeline.
G.11 Azure/GitHub hosted build works differently from local Jenkins
Hosted environments are freshly provisioned and may have:
- different SDK versions;
- different PowerShell versions;
- different environment variables;
- different filesystem paths.
Read the run’s environment/setup logs and compare them with the tested-environment record in PREREQUISITES.md.
G.12 Never solve a secret problem by committing the secret
If authentication fails, fix the authentication mechanism.
Do not paste real credentials into:
- YAML;
Jenkinsfile;- PowerShell scripts;
- README files;
- issue comments;
- screenshots.