How Do You Troubleshoot Triggers in a CI/CD Pipeline That Are Not Functioning?

Problem scenario
You are using Bitbucket and Jenkins. You have configured triggers to happen on certain events. The events have happened, but you see no corresponding action, no alerts or error messages and nothing in any relevant log. What should you do?

Possible solution #1
In Bitbucket, log in. Go to the relevant repository. Then go to Settings -Workflow -Hooks. Enable the “Post-Receive Web Hooks.” If this is disabled,

 » Read more..

How Do You Create a Jenkins CI/CD Pipeline That Starts when Code is Checked into Atlassian Bitbucket?

Problem scenario
To trigger a Jenkins build after code is inserted into a Bitbucket repository, I have two options. I can use a Bitbucket plugin in Jenkins and do the configuration there. Or I can create a webhook in Bitbucket.

I tried both with a great deal of troubleshooting. But neither worked, and there was no error message. I found nothing in the logs. The triggering event clearly happened.

 » Read more..

How Do You Deactivate a HipChat User with Only His/Her Email Address Using the REST API?

Problem scenario
You have email addresses of users that you want deactivated. You do not want to use the GUI for HipChat. How do you invoke REST APIs to deactivate a user?

Prerequisite
You need an API token for HipChat. If you have this, start with the Procedures below. Otherwise keep reading this “Prerequisite” section. You need several scopes for the API token authorize you to be able to deactivate a user.

 » Read more..

How Do You Change the Indentation of the GUI-Rendering of a File in Bitbucket?

Problem scenario
You are using a web browser and some items in a list are indenting where you do not want them indented. How do you make them line up with the other items in the list without indentation?

Solution
Bitbucket’s rendering of a text file does an auto-indent for natural numbers (with no sub-numbering scheme). If you have this in a file,

 » Read more..

How Do You Get Bitbucket to Render Text in a Regular Size when There Are Hashtag (or Hashmarks, “#”)?

Problem scenario
Bitbucket’s GUI renders Bash code with large text on lines with a “#” hash sign (aka tic-tac-toe sign, number sign, or hash symbol). How do you get the lines to be the same size in Bitbucket GUI rendering?

Solution
Usually the hash sign “#” is a comment (for many programming languages). If you have a space after the hash sign like this “# comments here” (instead of “#comments here”),

 » Read more..

How Do You Troubleshoot a Bitbucket Webhook Invocation to Start a Jenkins Build?

Problem scenario
You have created a webhook in Bitbucket to call a Jenkins URL. You create the triggering event in the repository (e.g., by pushing code or creating a pull request). The build associated with the Jenkins URL does not start.

You manually tested the Jenkins URL, bypassing Bitbucket, with curl -X POST. The invocation successfully starts the build.

In the Bitbucket logs you see “Connection refused” or “403 Forbidden” errors when the triggering event happens to the given repository (configured with the webhook).

 » Read more..

What Can You Do to Set up Jira when It Hangs Forever with No Error Messages?

Problem scenario
You connect your Jira instance to an empty SQL database.  For the first time you log into the web UI to set things up.  When you try to create a task, project or story, the web UI hangs forever.  If you close out of the web UI, you have to start all over.  

What do you do when you first connect to a Jira instance via its web UI and it prompts you for a language and other initial settings but hangs when you try to create a task or story?

 » Read more..

How Do You Install Jira When You Get an Error about Not Having a Graphical UI or an Error about Using the -c Flag to Use the “console” to Install Jira?

Problem scenario
You are trying to install Jira on a RHEL server (e.g., in AWS).  You run this:

sudo ./atlassian-jira-software-7.8.1-x64.bin

But it gives you an error.  You see a message about not being able to connect to an X server and the -c option will invoke a console method.  You try using the -c flag when invoking the .bin script to install Jira.  The problem keeps happening.  What should you do?

 » Read more..

How Do You Troubleshoot the Jira Cluster Message “Node is not using the correct shared home…”?

Problem scenario
In the Jira “Instance health checks” section you see a problem has been detected under the “Cluster” section.  It says “Node jiranode1 is not using the correct shared home…”  How do you get this error to go away?

Possible solution #1
Log into the node on the back-end.  Stop the Jira service and then start the Jira service.

Possible solution #2
Log into a working node on the back-end. 

 » Read more..

How Do You Find the Health Status of a Jira Cluster in the Web UI?

Problem scenario
When you logged into the web UI for Jira you saw one or more error messages.  How do you find out of the error is still valid?

You want to find the web UI page in Jira that will tell you about the health of the cluster for one of the following error categories:

-Supported platforms
-Database
-File system
-Indexing
-Attachments
-Cluster
-Secondary Storage

Where do you go to view the status of detected problems or potentially detected problems?

 » Read more..