git

Using Jenkins with Scala, ScalaTest, SBT, and Git

I’ve used Jenkins before, but hadn’t used it in a while, so when I got it running with Scala, SBT, ScalaTest, and Git, I made some notes about how to configure it. You can get Jenkins going with Docker, but I just got Jenkins running by starting its WAR file like this:

java -jar jenkins.war

Jenkins with Scala, SBT, ScalaTest, and Git

My notes on getting everything up and running are a little cryptic, but if you have a little experience with Jenkins I hope they’ll make sense. Here they are:

Jenkins tutorials (Jenkins, Docker, Scala, SBT, Java, Maven, and Git)

As a brief note to self, these were the two best Jenkins tutorials I found in early 2019:

The first one shows how to run Jenkins with Docker, and the second one shows how to build a Java/Maven/Git project.

This tutorial on how to use Jenkins with Scala and SBT was also helpful:

Fun ‘git’ commands alvin May 30, 2017 - 11:39am

This article titled, Little things I like to do with git, has a fun series of git commands.

A Git tutorial by Mary Rose Cook alvin August 1, 2016 - 5:22pm

While I’m in the Mary Rose Cook neighborhood, she also wrote this excellent Git tutorial.

Git - How to automatically `git rm` all files that have been deleted on disk alvin January 13, 2016 - 8:00pm

This SO tip on how to automatically remove/delete all files from a Git repository that you have already deleted on disk is a real timesaver. Of course it’s a wee bit dangerous (and probably won’t work on Windows), but that’s part of its charm.

How to rename a directory when using Git alvin April 14, 2015 - 4:11pm

This website has the best discussion I’ve found on how to rename a directory in Git.

Note that if you need to update text in many files, my article on how to use the Unix sed command to edit many files in place may be helpful at this time.

git push after git tag problem (everything up-to-date) alvin February 21, 2015 - 2:45pm

If you attempt to do a normal git push origin master after adding a tag, you’ll get an “Everything up-to-date” message from Git. In short, this is because you have to push a tag to the origin just like you push a branch.

In my case I just created a tag named v0.1, so I pushed it like this:

git push origin v0.1

The output from the git push command looks like this: