Deploy a Sample Application

Use the Jenkins job to deploy or undeploy applications, shared libraries and resources to the new domain using a sample application.


To deploy and undeploy an application, see Tutorial iconTutorial.

To deploy or undeploy a sample application:

  1. Sign in to the Jenkins console for your domain. See Access the Jenkins Console.
  2. On the Dashboard page, click sample app.
  3. Click Build with Parameters.
  4. From Domain_Name, select the required domain.
  5. Optional: Select the Undeploy_Sample_App check box to undeploy the sample application .
  6. Optional: Clear the Rollback_On_Failure check box if you do not want to rollback to the previous working domain image.

    If you cleared this check box, you can rollback to the previous image later from the backup.


    The Rollback_On_Failure check box is selected by default.
  7. Optional: Configure the Registry.
    If you want to use another user credentials, other than the one specified when creating a stack, then specify the credentials that Oracle WebLogic Server for OKE must use to access container images in the Oracle Cloud Infrastructure Registry (OCIR).
    1. In the Registry_Username field, enter a user name that Kubernetes uses to access the image in the registry.
    2. In the Registry_Authentication_Token field, enter the OCID for the secret for the auth token generated for the registry user.
  8. Click Build to run the Pipeline job.
  9. Access the sample-app with the URL:

    You can use the kubectl command to get the external load balancer IP address.

    For example:

    kubectl get svc <domain_name>-lb-external -n wlsoke-ingress-nginx


    To get the external load balancer IP address, when you create an Oracle WebLogic Server for OKE domain without a bastion instance, run the following command:
    kubectl get svc -A

    The public load balancers are listed with the namespace wlsoke-ingress-nginx and name <domain-name>-lb-external.

You can use the WebLogic Server Administration Console to verify that your application is deployed to the domain. See Access the WebLogic Console.