jenkinsci / jenkinsci/ec2-plugin

[JENKINS-69457] Reconnect after init.sh script runs

Open
#1,870 0 comments 0 reactions 0 assignees View on GitHub
component:ec2-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
292
Forks
709
Avg merge
3d 16h
Merged PRs (30d)
4

Description

Sometimes it's necessary to make changes in the init script that can't be represented in the current session - e.g. goup changes. To allow these kind of changes it would be necessary that a new session will be opened before the agent will be started.

---
Originally reported by fgosse_truffls, imported from: Reconnect after init.sh script runs


  • assignee: thoulen
  • status: Open
  • priority: Minor
  • component(s): ec2-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-06

Raw content of original issue

Sometimes it's necessary to make changes in the init script that can't be represented in the current session - e.g. goup changes. To allow these kind of changes it would be necessary that a new session will be opened before the agent will be started.

environment

```
Jenkins: 2.346.3

Amazon EC2 plugin: 2.0.0
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing the ec2-plugin flow that runs init.sh and starts the agent, then identify where the current session is established. Confirm how a new session could be opened before agent startup and verify that changes made by init.sh are visible to the agent. The issue names no files or tests, so the repository's startup and connection flow will need to be located first.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.