MindApproach
  • Unternehmen
  • Ziele
  • Leistungen
    • Smart Software Factory
    • Implementierung
    • Architektur Consulting
    • Trend Scouting
    • Docker Introduction
    • Demystifying Docker
    • Build-Management
  • Beispiele
  • Kontakt

Kategorien

  • Blog
  • News

Archive

  • September 2017
  • Februar 2017
  • September 2016
  • Mai 2016
  • März 2016
  • Januar 2016
  • Mai 2015
  • März 2015
  • Februar 2015
  • November 2014
  • August 2014
  • Juni 2014
  • Mai 2014
  • November 2013
  • September 2013
  • August 2013
  • Juni 2013

Hello World with Jenkins Workflow Engine

10. März 2015
Blog

After successfully creating and running a Docker image/container with Jenkins and the new “Workflow-Engine” we should get our fingers dirty and code a first “workflow” 😉 As usual that would be some kind of “Hello World” …

As first step we create a new Jenkins job of type “Workflow” and name it “HelloWorld”.
 
Jenkins Job Creation

To keep things simple we don’t use any source code repository (SCM) for this example. So we have to fill in some more or less useful commands (like echo("Hello World");) into script area of the Workflow configuration section and check “Use Groovy Sandbox”. Nothing more, nothing less.
 
20150310-02

After saving the job we have to start it manually by pressing “Build Now” button.
 
20150310-03

If you look at the console output afterwards you should see something similar:
 
20150310-04
That’s all. We created and run our first (simple) Jenkins Workflow job.

Summary:

Jenkins Workflow Engine adds a new job type named “Workflow”. In contrast to other job types it doesn’t provide so much configuration possibilities: Of course you can
 

  • give it a name,
  • trigger the build by
  •   scheduling,
  •   polling a source repository or
  •   joining to another project and
  • write or provide a Groovy based DSL script

This script is there all the magic happens, usually more than echoing „Hello World“ – but this we will explore more deeply in following posts.

Tags: Continuous Delivery, DevOps, Jenkins, Jenkins Workflow Plugin

  • Loading Workflow Scripts
  • Updating Jenkins plugins
  • Jenkins Docker Image with Workflow Engine
  • Continuous Delivery and Jenkins Workflow Engine
  • Home
  • Unternehmen
  • Ziele
  • Leistungen
  • Kontakt
  • Impressum
  • Datenschutz

© 2023 MindApproach GmbH – Enabling Smart Software Production_

– hosted by Sherpa.Dresden GmbH –