Jenkins
To change the port for jenkins running in Ubuntu machine
open the /etc/default/jenkins file and update the HTTP_PORT varibale to required port and restart the jenkins
To generate a scripted pipeline script for a plugin
http://localhost:8080/pipeline-syntax/