What Should You Do It You See Duplicate Plugins in Jenkins List of “Available” Plugins?

Problem scenario
You log into Jenkins.  You go to Manage Jenkins -Manage Plugins -Available.   You see the same plugin listed twice (e.g, under different categories such as “Build Reports” or “External Site/Tool Integrations”).  What should you do?

Solution
This is a workaround: look at the version of the plugins.  Are there duplicates the same version?  If the versions are the same, ignore one duplicate as we do not think it will cause a problem. 

How Do You Get a Jenkins Plugin to Work That Normally Uses the Internet When You Have No Internet Access?

Problem scenario
Your Jenkins server has no access to the internet.  You are trying to run a  Jenkins job that involves a plugin.  You receive a 407 error when a job runs.  You look at the console output and see java.io error that deals with being unable to connect to a website.  How do you customize a Jenkins plugin to retrieve installation media from an internal server instead of a default website URL?

How Do You Get the Sonar Scanner Tool to Be Reinstalled on a Jenkins Slave?

Problem scenario
You want to uninstall the Sonar Scanner CLI to force its reinstallation as you have a Jenkins job that does the installation automatically.  What do you do to uninstall it and make the Jenkins job do the installation again?

Solution
1.  For the Sonar Scanner job that will run, configure it so it runs on a specific slave.  Log into Jenkins.  Go to the Jenkins job,

How Do You Configure Jenkins Builds to Avoid Slave Servers That Are Either Windows or Linux?

Problem scenario
You are configuring Jenkins jobs.  You want certain jobs to only run on Windows slaves (e.g., PowerShell jobs) and certain jobs to only run on Linux slaves (e.g., Bash scripts).  You want to force a job force a selection of a slave server to avoid Windows or Linux servers.  How do you have Jenkins avoid slave servers based on the OS architecture?

Solution
1. 

How Do You Set up a Basic CI/CD Pipeline with GitLab and Jenkins?

Problem scenario
You want to create a rudimentary CI/CD pipeline (one that is simple and has no QA or automated testing of code).  You want to trigger a deployment of code upon code being checked into a Git repository.  You want to set up GitLab and Jenkins to be the main servers of this pipeline.  You have two other servers; one is for developing code on and checking code into a Git repository and the other server is for receiving code once it is checked into GitLab. 

How Do You Cancel the Uninstallation of a Jenkins Plugin?

Problem scenario
You started the uninstallation of a plugin in Jenkins via the web UI.  The plugin now says “Uninstallation pending” in the web UI.  You changed your mind (or you accidentally initiated the process to remove the plugin by clicking the “Uninstall” button) about removing the plugin.  What do you do to keep the plugin continuously installed in Jenkins?

Solution
Background
When you initiate the uninstallation of a plugin,

How Do You Install Jenkins on a CentOS/RedHat/Fedora server?

Problem scenario
You want to install Jenkins on a RedHat derivative Linux server (e.g., CentOS, RHEL, or Fedora).  What do you do?

Solution
1.  Run these commands:

curl https://pkg.jenkins.io/redhat-stable/jenkins.repo > /tmp/jenkins.repo
sudo mv -i /tmp/jenkins.repo /etc/yum.repos.d/jenkins.repo
sudo rpm –import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

2.  Run this command:
sudo yum -y install java jenkins

# When you see the “Package configuration” menu that says “Configuring grub-pc” press the tab key (to get to the “Ok” option for “keep the local version currently installed”). 

How Do You Install Jenkins 2.x on Ubuntu Linux in AWS?

Problem scenario
You want to install Jenkins on an Ubuntu Linux server without running an “apt-get upgrade” command.  (You are ok with installing a “apt-transport-https” package.)  What should you do?

Solution
See this posting because the directions work for Ubuntu in AWS and Debian in GCP.

(If you can run “apt-get upgrade”, and you do not want to install “apt-transport-https”,