Wednesday, March 25, 2015

Change a Build Number in Jenkins

So you want to change a build number in Jenkins ... I searched the web all over the place and it's not out there.  So here it is.  Many people ask the question, but mostly ridiculous answers exist, mainly in the form of "You don't want to do that" or "Why would you want to do that?"  This is not helpful.

Although I admit that most of the reasons for needing to do this are probably misguided - even my own -- there may arise a legitimate need to do this.

Mine arises because the build (misguidedly) uses the Jenkins internal build number as part of the jar/Artifactory version string and I have moved the build to a new Jenkins server.  Doing this effectively resets the build number to one, which will result in overwriting an existing artifact on the repository.

To change the build number.  Change directories to the Jenkins job directory on the master.

cd  {path_to_jenkins_master_home}/jobs/{job_name}

Edit the file nextBuildNumber and change (advance -- I am not sure you can go backwards) the build number to the one you want to use.   Shelve the build and unshelve it to reload the job from the disk.  This allows reloading the job without restarting Jenkins.

When I ran the job it produced an error regarding the lastSuccessful and lastStable directories -- located in the same directory -- not being empty so I had to move those out of the way, at which point the next build correctly ran. 


Sunday, March 22, 2015

Pacific Red Snapper Hash

The other day I had a very remote craving.  It was a craving brought up from my past, probably brought up by my recent efforts to reconnect with my graduate school friends who now live in Europe.  I have been craving the snapper hash from Bijou Café in Portland.  It's unusual to have a craving from events 20 years ago, but here they are.  In the mid 90's I went more than a few times to Bijou in Portland Oregon for the snapper hash. 

I searched the web and it looks like I would have to go to Zarela's in New York, if I want me some snapper hash. 

Or make it myself.  The garam masala and cumin combine to give this an occasionally surprising background palette.

Serves 4

3 T. Oil
Cornstarch for dredging
2 eggs scrambled
Panko Japanese style bread crumbs
1 pound of Pacific red snapper fillets, cut into 1-2 inch chunks 1100 g
3 potatoes, peeled and cut into half inch cubes 900 g
1 medium onion, chopped fine 350 g
1 small shallot, chopped  60 g
3 scallions, chopped
5 garlic cloves, crushed  
1 jalapeno (optional) 36 g
1 green bell pepper, chopped 115 g
1/4 cup Parsley, chopped
Pinch of cumin, cinnamon, ground cloves and garam masala
Salt and pepper

Saute the vegetables and spices in the oil until the onions are soft. Add the potatoes. I added a little water and covered, so the potatoes might cook a bit from the steam.  Cook on a medium fire till brown, about 10-15 minutes.  Meanwhile dredge the snapper in cornstarch, Egg and panko and cook in another pan. 6 minutes on the first side an 4 minutes or so on the other.

Flip the potatoes and as the potatoes brown on the other side, gently add the finished snapper to the top of the potatoes.   When the potatoes are cooked, server with tabasco or Sriracha Mayo or lemon.

Green Chile Soup

For the locals here in coastal California, the green chile soup at Duarte's Tavern in Pescadero is a  standard among delights and well worth the drive out there to have some. 

Rumor is that the recipe starts with two large cans of green chilies, and a can of cream of chicken. noodle soup. 

I usually don't cook like that. Try it like this.

10 Anaheim peppers
1 pasilla pepper
1 jalapeno pepper (optional)
2 cups chicken stock
1/2 medium onion
1/2 medium shallot
5 cloves garlic peeled and smashed (in the Martin Yan way)
4 T butter
1/2 cup water
1/2  cup heavy cream
1/4 cup sour cream

Split all the peppers in half and remove the seeds and the pith.  Roast the peppers on a baking sheet in a very hot oven (500 degrees) for 1/2 hour. allow the pepper to cool in a bowl for about a half hour to capture the juices. Peel the peppers and remove the stems.

In a medium saucepan, saute the onions shallot and garlic in the butter.  Add salt and pepper. Once the onions are transparent, add the chilies and the stock, and bring to a boil.   Puree with a hand blender.  Add the cream and the sour cream.  Heat to just simmering. Serve with a dollop of sour cream.

Tuesday, March 3, 2015


I asked my French friend about her wonderful dinner (twenty years ago) of bouillabaisse and other French magic, including a pear dessert saturated in red wine.

 Here is the recipe [for the Bouillabaisse], from my old book by the Scotto sisters
Vider, étêter, écailler les poissons, réservez les têtes et les arêtes. Couper les plus gros en tronçons de 4 cm et laissez les autres entiers; lavez-le et épongez-les.
Lavez les tomates et hachez-les grossièrement. Pelz oignons, carottes et poireau. Emincez finement le poireau, l'oignon et le cèleri. Coupez les carottes en fines rondelles.

Fiates chauffer l'huile dans une cocotte de six litres, ajputez les têtes depoisson et les arêtes et mélangez cinq minutes sur feu doux. Ajoutez les tomates, les carottes, le poireau, le cèleri et l'oignon et mélangez jusqu'à ce que les légumes blondissent. Ajoutez le thym, le romarin, le fenouil, le laurier, le zeste d'orange, les gousses d'ail entières, les tiges de persil, le safran, sel et poivre. Versez le vin blanc, laissez cuire 45 minutes à feu très doux.

Au bout de ce temps, retires les têtes et les arêtes, ainsi que les branches de thym et toutes les aromates. Mixer le reste pour obtenir un velouté.

essuyez le cocotte et versez-y le velouté. Porter à ébullition sur feu doux, et ajouter les poissons en commençant par ceux dont la chair est la plus ferme (seiche, congre, baudroie, rascasse, rouget) puis ajouter ceux dont la chair est plus tendre (vive, saint-pierre, loup, sole, barbue) en laissant l'ébullition reprendre entre chaque opération. Ajoutez les crustacés. Laisser frémir dix minutes, puis égoutter poissons et crustacés et dressez les sur un plat. réserver au chaud. Versez le bouillon dans une soupière et servez-le chaud sur des tranches de pain frottées d'ail. servez les poissons ensuite.

Here is what you need : 3 kg de poissons et crustacés mélangés. 500 grammes de tomates bien mûres. 1/2 litre de vin blanc sec. 2 carottes, 1 oignon, 1 poireau, 10 gousses d'ail, persil, cèleri, thym, romarin, zeste d'orange, laurier, six filaments de safran, 4 cuillérées d'huile d'olive, pain grillé.

This would serve 8 persons. In Marseille, they often serve it with rouille, which is basically a garlic mayonnaise with a dash of red hot pepper.

Will make you busy a whole day, though, but I guess you enjoy that.
Bon, je vais dîner, A bientôt

Sunday, March 1, 2015

Red Lentil Soup -- Shorbat Adas

This is a traditional Middle Eastern soup called Shorbat Adas.  The Mediterranean Wraps shop on California in Palo Alto has an excellent lentil soup which of course I couldn't quite replicate.

3 ounces of bacon
2 tablespoons olive oil
2 cups of red lentils
 4 cups of chicken or garden stock
3 cups of water, plus more to thin later
1 tsp cumin
3 dried limes - cut into them slightly with a sharp knife in 2 or 3 places
2 limes
1/2- 1 tsp salt (to taste)
½ teaspoon fresh ground pepper
½-1 teaspoon turmeric
2 large carrots, chopped
1 tomato, diced
1 small yellow onion, diced
1 shallot, diced
4 cloves of garlic, diced

First sort the lentils for any stones, grains, or sand. Wash thoroughly and drain.

In a large pot, over high heat, add the olive oil and bacon and slowly render all the fat. Remove the bacon and reserve for garnish. 

Add the vegetables and toss lightly until fragrant and the onions soften. Do not brown it.
Immediately add the lentils and spices. Stir well. The lentils will absorb the oil and heat up and roast.   
When the pan starts to crackle a bit add the broth and the water.

Once the soup begins to boil, reduce heat. Simmer for about 40 minutes, uncovered.

When the lentils are softened and cooked, Add the juice of one lime, puree with a hand blender, avoiding or removing the dried limes, and remove from heat. If the soup looks too thick to you, you can add more water over low heat and stir until homogeneous.

Sprinkle with paprika, serve with lime wedges and pita bread, and garnish with the celery tops and the reserved bacon.  I paired this with a chilled beaujolais for a nice early spring lunch.