Skip to content

Commit 6e5f8e5

Browse files
committed
Remove git config from deploy.groovy and tried it in dockerfile
1 parent d9da65d commit 6e5f8e5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM node:slim
22

33
# Install imagemagick
44
RUN apt-get update -y && apt-get install -y imagemagick git && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
5+
RUN git config --system user.name jenkins && git config --system user.email [email protected]
56
RUN npm install -g gulp
67

78
RUN mkdir -p /usr/src/app

scripts/deploy.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ node {
1515

1616
node {
1717
docker.build('website-node').inside('-v /var/jenkins_home/.ssh:/root/.ssh') {
18-
sh 'git config user.email "[email protected]" && git config user.name "Jenkins"'
1918
sh 'rm -rf node_modules && ln -s /usr/src/app/node_modules node_modules'
2019
sh 'npm run jenkins.postbuild'
2120
sh 'npm run jenkins.deploy'

0 commit comments

Comments
 (0)