JAVA_ARGS
next key -Djenkins.install.runSetupWizard=false
In Ubuntu 16 default file places in /etc/default/jenkins
$JENKINS_HOME/init.groovy.d/basic-security.groovy
In Ubuntu 16 Jenkins home directory places in /var/lib/jenkins
#!groovy
import jenkins.model.*
import hudson.util.*;
import jenkins.install.*;
def instance = Jenkins.getInstance()
instance.setInstallState(InstallState.INITIAL_SETUP_COMPLETED)
$JENKINS_HOME/init.groovy.d/basic-security.groovy
fileAfter this Jenkins doesn`t ask you to confirm that you are admin and you will not see plugins install page.