This guide walks Windows users through setting up the Resources AI Chatbot Plugin for local development using WSL2 (Windows Subsystem for Linux).
For official WSL2 documentation, refer to: https://learn.microsoft.com/en-us/windows/wsl/install
- Windows 10 (build 19041+) or Windows 11
- At least 8GB RAM recommended
Open PowerShell as Administrator and run:
wsl --installThis command installs WSL2 along with the default Ubuntu distribution.
Restart your PC after this completes.
After restart, Ubuntu will open automatically and ask you to create a username and password. Complete that setup before proceeding.
To verify WSL2 is installed correctly, open PowerShell and run:
wsl --list --verboseExpected output: NAME STATE VERSION
Ubuntu Running 2
Make sure VERSION shows 2. If it shows 1, run:
wsl --set-version Ubuntu 2Before installing dependencies, confirm you are inside the Ubuntu terminal. Open the Ubuntu app from the Windows Start menu. Your prompt should look like: yourname@DESKTOP-XXXXX:~$
If you see PS C:\Users\... you are in PowerShell — close it and open Ubuntu instead.
Update the package list first:
sudo apt updateInstall the required build tools:
sudo apt install -y make cmake gcc g++ python3.11 python3.11-venv python3.11-devVerify the installations:
# Verify cmake
cmake --version
# Verify gcc
gcc --version
# Verify Python 3.11
python3.11 --versionInstall OpenJDK 17:
sudo apt install -y openjdk-17-jdkVerify Java is installed correctly:
java -versionExpected output: openjdk version "17.x.x" ...
The default Maven from apt is too old (3.6.x). Install 3.9+ manually.
First, set the version as a variable so it only needs to be updated here if the version changes in the future:
MAVEN_VERSION=3.9.9Download Maven:
wget https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gzExtract the archive:
tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gzMove it to /opt:
sudo mv apache-maven-${MAVEN_VERSION} /opt/mavenAdd Maven to your PATH so it is available in every terminal session:
echo 'export PATH=/opt/maven/bin:$PATH' >> ~/.bashrc
source ~/.bashrcVerify Maven and Java versions:
mvn -versionExpected output: Apache Maven 3.9.x (...) Java version: 17.x.x
Clone the repository inside WSL, not on the Windows filesystem:
cd ~
git clone https://github.com/jenkinsci/resources-ai-chatbot-plugin.git
cd resources-ai-chatbot-plugin
⚠️ Do NOT clone into/mnt/c/...(your Windows drive). Always work inside the WSL home directory (~) to avoid filesystem permission and performance issues.
Start Jenkins with the plugin loaded:
mvn hpi:run -Dchangelist=-SNAPSHOT -Dhost=0.0.0.0-Dchangelist=-SNAPSHOTresolves the version variable in pom.xml-Dhost=0.0.0.0binds Jenkins to all interfaces so it is reachable from Windows browser
Wait for this line before opening the browser: Jenkins is fully up and running
Open a second Ubuntu terminal (leave the first one running Jenkins), then run:
explorer.exe "http://localhost:8080/jenkins"This opens your Windows browser pointing to the Jenkins instance running inside WSL.
[ERROR] Unknown packaging: hpi @ io.jenkins.plugins:resources-ai-chatbot:${changelist}
Fix: Pass the changelist flag explicitly:
mvn hpi:run -Dchangelist=-SNAPSHOT -Dhost=0.0.0.0Fix: Do not use -Dchangelist= (empty value). Use -Dchangelist=-SNAPSHOT instead.
You are in PowerShell, not WSL. Open the Ubuntu app from the Windows Start menu.
Your Windows version may not have winget pre-installed. Use WSL2 instead rather than installing dependencies natively on Windows.
Make sure you started Jenkins with -Dhost=0.0.0.0 and open the browser
using explorer.exe from inside the WSL terminal, not from PowerShell.
- Always run Maven and Git commands inside WSL, never in PowerShell
- Keep the Jenkins terminal running while you work — do not press Enter accidentally as this triggers a redeploy
- The repo must be cloned inside WSL (
~/) not on the Windows filesystem (/mnt/c/)