Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1796dab7
authored
Sep 14, 2017
by
amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
jenkins scripts
parent
00944369
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
common/scripts/jenkins/docker-build-tag-push.bash
common/scripts/jenkins/rewrite_readme.sh
common/scripts/jenkins/docker-build-tag-push.bash
0 → 100644
View file @
1796dab7
#bin/bash
[
-z
"
$1
"
]
&&
echo
"Group name is Empty!!!"
echo
"job: "
$JOB_NAME
echo
"git-url: "
$GIT_URL
echo
"group: "
$1
echo
"building docker image"
IMAGE_NAME
=
$gitlab_url
:5050/
$1
/
$JOB_NAME
docker build
-t
$IMAGE_NAME
.
echo
"tagging new image"
TAG_IMAGE_NAME
=
$IMAGE_NAME
:
$BUILD_NUMBER
-
$(
echo
$GIT_COMMIT
| cut
-c1-7
)
echo
"tag name: "
$TAG_IMAGE_NAME
docker tag
$IMAGE_NAME
$TAG_IMAGE_NAME
docker login
-u
jenkins
-p
giptmgr1
$gitlab_url
:5050
docker push
$IMAGE_NAME
docker push
$TAG_IMAGE_NAME
common/scripts/jenkins/rewrite_readme.sh
0 → 100644
View file @
1796dab7
#bin/sh
echo
"git revision:"
>
readme
echo
$BUILD_NUMBER
-
$GIT_COMMIT
>>
readme
echo
changes
>>
readme
#CHANGELOG=$(curl "$BUILD_URL/api/xml?wrapper=changes&xpath=//changeSet//comment" | sed -e "s/<\/comment>//g; s/<comment>/* /g; s/<\/*changes>//g" | sed '/^$/d;G')
CHANGELOG
=
$(
git log
-1
--pretty
=
%B
)
echo
$CHANGELOG
>>
readme
cat
README.md
>>
readme
mv readme README.md
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment