Skip to content

Commit ebb0e82

Browse files
committed
fix: open Jenkins in browser instead of VS Code preview
Change onAutoForward from 'openPreview' to 'openBrowser' to avoid preview pane issues with Jenkins security headers. The VS Code preview shows 'Please reopen the preview' due to Jenkins X-Frame-Options headers. Opening in a regular browser tab works fine. Updated README to clarify this behavior.
1 parent d416832 commit ebb0e82

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.devcontainer/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ After starting a tutorial with `docker compose --profile <name> up -d`:
3535
- Jenkins URL: `https://<codespace>-8080.<domain>` (shown in PORTS panel)
3636
- Default credentials: admin/admin
3737

38+
**Important:** Open Jenkins in a regular browser tab, not the VS Code preview pane. The preview may show "Please reopen the preview" due to Jenkins security headers. Click the globe icon 🌐 in the PORTS panel or copy the URL to your browser.
39+
3840
## Troubleshooting
3941

4042
**Port 8080 refuses connection:**

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"portsAttributes": {
2121
"8080": {
2222
"label": "Jenkins Controller",
23-
"onAutoForward": "openPreview",
23+
"onAutoForward": "openBrowser",
2424
"protocol": "http",
2525
"visibility": "public"
2626
},

0 commit comments

Comments
 (0)