How to install and run the Gradle Wrapper


To install and run the Gradle Wrapper mkdir my-project cd my-project gradle wrapper ./gradlew build [root@aryan-34252e5f2 ~]# mkdir my-project [root@aryan-34252e5f2 ~]# cd my-project [root@aryan-34252e5f2 my-project]# gradle wrapper Starting a Gradle Daemon (subsequent builds will be faster) BUILD SUCCESSFUL in 6s 1 actionable task: 1 executed [root@aryan-34252e5f2 my-project]# ./gradlew build Downloading https://services.gradle.org/distributions/gradle-4.7-bin.zip …………………………………………………………….. > Task :buildEnvironmentContinue reading “How to install and run the Gradle Wrapper”

How to install Gradle


To install Gradle in CentOS get -O ~/gradle-4.7-bin.zip https://services.gradle.org/distributions/gradle-4.7-bin.zip sudo yum -y install unzip java-1.8.0-openjdk sudo mkdir /opt/gradle sudo unzip -d /opt/gradle/ ~/gradle-4.7-bin.zip sudo vi /etc/profile.d/gradle.sh Open Vi Editor and add this line export PATH=$PATH:/opt/gradle/gradle-4.7/bin Then set permissions on gradle.sh: do chmod 755 /etc/profile.d/gradle.sh log out of the server and logging back in: gradle –version

How to “Unlock Jenkins”?


Unlock Jenkins To ensure Jenkins is securely set up by the administrator, a password has been written to the log (not sure where to find it?) and this file on the server: /var/lib/jenkins/secrets/initialAdminPassword Please copy the password from either location and paste it below. To Unlock Jenkins, you need to go to following directory /var/lib/jenkins/secrets/initialAdminPasswordContinue reading “How to “Unlock Jenkins”?”

jenkins.service failed because the control process exited with error code


Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service” and “journalctl -xe” for details. If you get above message uninsall Jenkins and try again using this method sudo yum -y remove java sudo yum -y install java-1.8.0-openjdk sudo cp /etc/profile /etc/profile_backup echo ‘export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk’ | sudo tee -aContinue reading “jenkins.service failed because the control process exited with error code”