Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

Commit 888980b

Browse files
committed
docker system to run jenkins job
1 parent 65f32d0 commit 888980b

5 files changed

Lines changed: 24 additions & 23 deletions

File tree

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
report/
12
*.log
23
conjur-api.js
3-
integration-result.xml
44
integration/testdata
55
integration/policy.json
6-
test-result.xml
76
test.log
87
node_modules
98
*.iml
10-
.idea
9+
.idea

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM dockerfile/nodejs
2+
3+
ADD . /app
4+
5+
WORKDIR /app
6+
7+
RUN npm update

jenkins.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash -e
2+
3+
job=$JOB_NAME
4+
if [ -z $job ]; then
5+
job=sandbox
6+
fi
7+
8+
docker build -t api-node:$job .
9+
10+
rm -rf report
11+
mkdir report
12+
13+
docker run --rm -e TEST_REPORTER=xunit-file -e XUNIT_FILE=report/xunit.xml -v $PWD/report:/app/report api-node:$job node node_modules/gulp/bin/gulp.js
14+
15+
echo "Test results are available in report/xunit.xml"

test.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

testconfig.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)