Initial hello-world program.
Change-Id: Iaf532290dcde6118eec31d3b5283908cc552335e
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a468ad2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+hello-world-ng
+*~
+*.o
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..5590199
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,52 @@
+// -*- mode: groovy -*-
+pipeline {
+
+ agent {
+ kubernetes {
+ cloud 'kubernetes'
+ label 'example-v1'
+ containerTemplate {
+ name 'debian'
+ image 'buildpack-deps:stretch'
+ ttyEnabled true
+ command '/bin/cat'
+ }
+ }
+ }
+
+ stages {
+
+ stage('Prepare') {
+ steps {
+ container('debian') {
+ ansiColor('xterm') {
+ sh """
+ apt-get update && apt-get install -y --no-install-recommends build-essential colormake
+ """
+ }
+ }
+ }
+ }
+
+ stage('Build') {
+ steps {
+ container('debian') {
+ ansiColor('xterm') {
+ sh """
+ colormake
+ """
+ }
+ }
+ }
+ }
+
+ stage('Archive artifacts') {
+ steps {
+ container('baker') {
+ archiveArtifacts 'hello-world-ng'
+ }
+ }
+ }
+
+ }
+}
diff --git a/hello-world-ng.cpp b/hello-world-ng.cpp
new file mode 100644
index 0000000..d6e2ec3
--- /dev/null
+++ b/hello-world-ng.cpp
@@ -0,0 +1,7 @@
+#include <iostream>
+#include <cstdlib>
+
+int main(int, char **) {
+ std::cout << "Hello world!" << std::endl;
+ return EXIT_SUCCESS;
+}
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..539a1ee
--- /dev/null
+++ b/makefile
@@ -0,0 +1,12 @@
+.PHONY: all clean
+
+all: hello-world-ng
+
+clean:
+ $(RM) hello-world-ng.o hello-world
+
+hello-world-ng: hello-world-ng.o
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
+
+%.o: %.cpp
+ $(CXX) $(CXXFLAGS) -o $@ -c $<