Juniper / nita-webapp

nita-webapp, a lightweight django based webapp that orchestrates jenkins, ansible and robot, part of the Juniper NITA solution
Apache License 2.0
12 stars 13 forks source link

View hyperlink for Console logs not working in nita-webapp UI #6

Closed NarenderVaishnav closed 3 years ago

NarenderVaishnav commented 3 years ago

View link for Console log output is not redirecting to console log output . The View link is going to port 8080 instead of 8443. (http://webapp:8080/job/test_bt-sample/2/console)

Screenshot 2021-04-12 at 1 51 02 PM
hribeiro-jnpr commented 3 years ago

As of commit 706a21dae6265548a105d1542fc94473fa6e66bd the following feature is added:

Set Jekins URL

By default the Webapp assumes a local installation. If this is not the case and you have Nita running on a remote machine you can configure the Webapp to properly riderect the user to the Jenkins UI.

You only need to set the environment variable HOST_URL with the address of the remote machine and the variable JENKINS_PORT with the port that Jenkins is listening on.

Example:

export JENKINS_URL=remoteserver.com
export JENKINS_PORT=8443
hribeiro-jnpr commented 3 years ago

Changed variable name. See bellow! As of commit: c286fd24e25bee141af1e409b28b204556c5a3a0

Set Jekins URL

By default the Webapp assumes a local installation. If this is not the case and you have Nita running on a remote machine you can configure the Webapp to properly riderect the user to the Jenkins UI.

You only need to set the environment variable JENKINS_URL with the address of the remote machine and the variable JENKINS_PORT with the port that Jenkins is listening on.

Example:

export JENKINS_URL=remoteserver.com
export JENKINS_PORT=8443