change default port for jenkins code example
Example: how to change the port number in command prompt for jenkins
//To change the port in command line we use --httpPort command line option
java -jar jenkins.war --httpPort=8081
//To change the port in command line we use --httpPort command line option
java -jar jenkins.war --httpPort=8081