Posts

Showing posts from May, 2025

manual link

 https://mangrove-spy-017.notion.site/

4

 sudo apt update sudo apt upgrade -y sudo wget -O /etc/apt/keyrings/jenkins-keyring.asc \   https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key echo "deb [signed-by=/etc/apt/keyrings/jenkins-keyring.asc]" \   https://pkg.jenkins.io/debian-stable binary/ | sudo tee \   /etc/apt/sources.list.d/jenkins.list > /dev/null sudo apt update sudo apt install jenkins -y sudo systemctl start jenkins sudo systemctl enable jenkins sudo systemctl status jenkins localhost:8080 sudo cat /var/lib/jenkins/secrets/initialAdminPassword Copy the displayed password and paste it into the "Administrator password" field in your browser. Click "Continue". On the next screen, click "Install suggested plugins" to install a recommended set of plugins. After the plugins are installed, you will be asked to create an administrator user. Fill in the required details and click "Save and Finish". You should now see the Jenkins dashboard, ready for use. Prepare Yo...

1

MAVEN INSTALLATION   sudo apt update sudo apt install openjdk-17-jdk -y java --version sudo update-alternatives --config java sudo apt install maven -y mvn -version Creating a Maven Project Step 1: Open Terminal &  Generate Project If there is already a folder named MyMavenApp then change the -DrartifactId value to some other name or delete the MyMavenApp folder. mvn archetype:generate -DgroupId=com.example -DartifactId=MyMavenApp -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false cd MyMavenApp Maven Project Layout sudo snap install tree tree Open pom.xml file gedit pom.xml Remove the existing pom.xml file and paste the following <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> ...

2

GRADLE INSTALLATION   sudo apt update sudo apt install openjdk-17-jdk -y java --version sudo update-alternatives --config java Remove Existing Gradle (Only if Present) gradle -v sudo apt remove gradle -y        //via APT ls ~/.sdkman                              //via sdkman sdk uninstall gradle <version> --force          #Replace <version> with the installed version for example, 8.13  sdk uninstall gradle 8.13 --force Download and Extract Gradle wget https://services.gradle.org/distributions/gradle-8.14-bin.zip -P /tmp sudo unzip -d /opt/gradle /tmp/gradle-8.14-bin.zip Modify bash command file by running the following command: gedit ~/.bashrc At the end of the file, add the following lines: export GRADLE_HOME=/opt/gradle/gradle-8.14 export PATH=${GRADLE_HOME}/bin:${PATH} Save the file. Then to apply the changes run the following in terminal: sou...