Skip to content

Commit

Permalink
Update jenkins.md (#5108)
Browse files Browse the repository at this point in the history
  • Loading branch information
TalGevaSpot authored Dec 3, 2024
1 parent a813d8a commit 589c57d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/docs/tools-and-provisioning/ci-cd/jenkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,24 @@ If you haven't configured the needed credentials yet, you can use the `Add` butt

Notice that the username (`ec2-user`) must be an existing user in the agent machine.

In advanced versions of Jenkins, it is required to add a nodes directory.
Please check if the directory exists in the controller by running the following command:

```bash
ls -ld /var/lib/jenkins/nodes
```

If the nodes directory does not exist, create it, and then give it the correct permissions by running the following commands on the controller:

```bash
sudo mkdir -p /var/lib/jenkins/nodes
sudo chown -R jenkins:jenkins /var/lib/jenkins/nodes
```

After that, restart Jenkins.

In addition, verify that the `JENKINS_HOME` variable is defined in the environment from `Manage Jenkins` → `System Information` → `Environment Variables`. If the variable is not there, see the [Jenkins documentation](https://www.jenkins.io/doc/book/managing/system-configuration/).

That's all! From now on, the Jenkins controller will automatically launch new instances with the Spot plugin and terminate them according to your configuration.

## JNLP Setup
Expand Down

0 comments on commit 589c57d

Please sign in to comment.