Linux

Install Jenkins in WSL

2022-04-24  本文已影响0人  JaedenKil

1. Install WSL

References:
Install WSL

Possible issue:
WSL 指定的网络名不再可用

2. Install Java in WSL

sudo apt install openjdk-8-jre-headless

3. Install Jenkins

Reference: WAR files

// Download Jenkins
Download https://get.jenkins.io/war-stable/2.332.2/jenkins.war
java -jar /mnt/c/Users/xxx/Downloads/jenkins.war

Test Jenkins:

  1. Create a new Pipeline job:
echo "Hello Jenkins"
  1. Run the job

  2. Check for console output, expected output to look like this:

Started by user MadHatter
[Pipeline] Start of Pipeline
[Pipeline] echo
Hello Jenkins
[Pipeline] End of Pipeline
Finished: SUCCESS
上一篇下一篇

猜你喜欢

热点阅读