In the console output, we will get our os information and the user that is used to run these commands on the server, named “jenkins”. Add the following commands and then trigger the job. Next let’s create a simple freestyle job to run some commands on our Jenkins server.Ĭreate the job and at the “Build” section, add a new build step of type “Execute shell”. Now you should see this change if you access and look for “Home directory” # Change the environment variable JENKINS_HOME to your new workspace folder # Create new workspace dir and copy all of the files, keeping permissions For our example, I will move it to /var/games/jenkins in a few steps. We can change this workspace to fit our needs. In this location we can see all of the jobs, logs, config files, plugins, libraries, secrets, updates etc. The default workspace is /var/lib/jenkins. Now that we have it installed, let’s see some important files and paths of Jenkins.
#HOW TO CHANGE AWS EMAIL SERVER NOTIFICATION SETTINGS INSTALL#
Get the password from the generated localfile /var/lib/jenkins/secrets/initialAdminPasswordand paste it in the UI box and install the recommended plugins. We should be able to access it using our public IP and port in our browser of choice. Our Jenkins is now started and enabled to start automatically after a reboot. Inside the file we have the port parameter JENKINS_PORT=”8080″ # service jenkins start If you are running anything debian related, the file should be /var/default/jenkins. On CentOS rpm based linux distros, the config file we want to check is /etc/sysconfig/jenkins. Why port 8080 you may ask? Well by default, Jenkins runs on port 8080, but we can change this to something else if we want. # yum -y updateīefore starting Jenkins and enabling it to start automatically after boot, let’s first open port 8080 in our AWS SecurityGroup, by creating a new ingress rule on TCP. Also make sure to import the key from Jenkins-CI. Next we need to make sure our system is up to date and afterwards start the Jenkins installation. OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode) OpenJDK Runtime Environment (build 1.8.0_252-b09) Usually ec2 instances come with java 1.7 installed and if so, we need to remove that version and install java 1.8 # sudo yum remove java-1.7.0-openjdk Because Jenkins is Java based, first we need to check if we have any OpenJDK installed.
![how to change aws email server notification settings how to change aws email server notification settings](https://wpforms.com/wp-content/uploads/2022/09/Adjust-From-Email-in-WP-Mail-SMTP-settings.jpg)
![how to change aws email server notification settings how to change aws email server notification settings](https://www.howtogeek.com/wp-content/uploads/2017/03/img_58b9dd86e1b18.png)
To run Jenkins we have to setup a few prerequisites. We will install and configure Jenkins to run on EC2 instances in AWS.