Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DARIAH-DE
TextGridLab
TextGrid Laboratory
Commits
16f2c1d8
Commit
16f2c1d8
authored
Oct 02, 2018
by
Ubbo Veentjer
Browse files
add Jenkinsfile
parent
88818c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
0 → 100644
View file @
16f2c1d8
node
{
def
mvnHome
stage
(
'preparation'
)
{
mvnHome
=
tool
'Maven 3.0.4'
checkout
scm
}
stage
(
'deploy'
)
{
//if (env.BRANCH_NAME == 'develop' || env.BRANCH_NAME.startsWith('release/')) {
if
(
env
.
BRANCH_NAME
==
'develop'
)
{
echo
"deploying to nexus"
sh
"${mvnHome}/bin/mvn -f ./parent/pom.xml -U clean verify deploy"
}
else
{
echo
"not deploying to nexus"
sh
"${mvnHome}/bin/mvn -f ./parent/pom.xml -U clean verify "
}
}
}
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