Merge "file 1 change for test"
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 18 Apr 2018 14:18:25 +0000 (16:18 +0200)
committerGerrit Code Review <root@osm.etsi.org>
Wed, 18 Apr 2018 14:18:25 +0000 (16:18 +0200)
Dockerfile [new file with mode: 0644]
Jenkinsfile [new file with mode: 0644]
devops-stages/stage-archive.sh [new file with mode: 0755]
devops-stages/stage-build.sh [new file with mode: 0755]
devops-stages/stage-test.sh [new file with mode: 0755]
file2.txt
file3.txt [new file with mode: 0644]
file4.txt [new file with mode: 0644]

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..ff46866
--- /dev/null
@@ -0,0 +1,3 @@
+FROM ubuntu:16.04
+
+RUN apt-get update && apt-get -y install git make python
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644 (file)
index 0000000..260f644
--- /dev/null
@@ -0,0 +1,30 @@
+properties([
+    parameters([
+        string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
+        string(defaultValue: 'test', description: '', name: 'GERRIT_PROJECT'),
+        string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'),
+        string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'),
+        string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'),
+        booleanParam(defaultValue: true, description: '', name: 'BUILD_SYSTEM'),
+    ])
+])
+
+def devops_checkout() {
+    dir('devops') {
+        git url: "${PROJECT_URL_PREFIX}/osm/devops"
+    }
+}
+
+node {
+    checkout scm
+    devops_checkout()
+
+    ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
+    ci_stage_2.ci_pipeline( 'test',
+                           params.PROJECT_URL_PREFIX,
+                           params.GERRIT_PROJECT,
+                           params.GERRIT_BRANCH,
+                           params.GERRIT_REFSPEC,
+                           params.GERRIT_PATCHSET_REVISION,
+                           params.BUILD_SYSTEM)
+}
diff --git a/devops-stages/stage-archive.sh b/devops-stages/stage-archive.sh
new file mode 100755 (executable)
index 0000000..4ec88f3
--- /dev/null
@@ -0,0 +1,3 @@
+mkdir -p dists
+touch dists/test.deb
+
diff --git a/devops-stages/stage-build.sh b/devops-stages/stage-build.sh
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/devops-stages/stage-test.sh b/devops-stages/stage-test.sh
new file mode 100755 (executable)
index 0000000..e69de29
index 20d5b67..c317270 100644 (file)
--- a/file2.txt
+++ b/file2.txt
@@ -1 +1,2 @@
 Second file
+With a new line
diff --git a/file3.txt b/file3.txt
new file mode 100644 (file)
index 0000000..2cc7402
--- /dev/null
+++ b/file3.txt
@@ -0,0 +1,2 @@
+hello world 3
+a fix
diff --git a/file4.txt b/file4.txt
new file mode 100644 (file)
index 0000000..484ba93
--- /dev/null
+++ b/file4.txt
@@ -0,0 +1 @@
+This is a test.