Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ecore2java-gradle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Fehn
ecore2java-gradle
Commits
8253ce2b
Commit
8253ce2b
authored
7 years ago
by
Andreas Fehn
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
87f2aaf7
No related branches found
No related tags found
No related merge requests found
Pipeline
#859
failed
7 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-11
6 additions, 11 deletions
.gitlab-ci.yml
with
6 additions
and
11 deletions
.gitlab-ci.yml
+
6
−
11
View file @
8253ce2b
variables
:
variables
:
GIT_STRATEGY
:
clone
ARTIFACT_DIR
:
build/repo/ecore2java
ARTIFACT_DIR
:
build/repo/ecore2java
build
:
build
:
stage
:
build
stage
:
build
image
:
nimmis/alpine-java:openjdk-8-jdk
image
:
nimmis/alpine-java:openjdk-8-jdk
variables
:
variables
:
GIT_STRATEGY
:
clone
GRADLE_OPTS
:
"
-Dorg.gradle.daemon=false"
GRADLE_OPTS
:
"
-Dorg.gradle.daemon=false"
before_script
:
before_script
:
-
export GRADLE_USER_HOME=`pwd`/.gradle
-
export GRADLE_USER_HOME=`pwd`/.gradle
script
:
script
:
-
./gradlew publish
-
./gradlew publish
after_script
:
-
ls -lR build/repo
artifacts
:
artifacts
:
paths
:
paths
:
-
$ARTIFACT_DIR
-
$ARTIFACT_DIR
...
@@ -21,30 +19,27 @@ build:
...
@@ -21,30 +19,27 @@ build:
paths
:
paths
:
-
.gradle/wrapper
-
.gradle/wrapper
-
.gradle/caches
-
.gradle/caches
only
:
-
tags
tags
:
tags
:
-
dockered
-
dockered
publish
:
publish
:
stage
:
deploy
stage
:
deploy
image
:
bravissimolabs/alpine-git
image
:
bravissimolabs/alpine-git
variables
:
GIT_STRATEGY
:
clone
before_script
:
before_script
:
-
git config user.name "$GITLAB_USER_NAME"
-
git config user.name "$GITLAB_USER_NAME"
-
git config user.email "$GITLAB_USER_EMAIL"
-
git config user.email "$GITLAB_USER_EMAIL"
-
export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`}
-
export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`}
-
echo $VERSION
-
echo $VERSION
script
:
script
:
-
git status
-
git checkout ivy-repo || git checkout --orphan ivy-repo
-
git checkout ivy-repo || git checkout --orphan ivy-repo
-
git reset
-
git reset
-
git status
-
cp -r $ARTIFACT_DIR .
-
cp -r $ARTIFACT_DIR .
-
git status
-
git add $(git ls-files -o ecore2java)
-
git add $(git ls-files -o ecore2java)
-
git commit -m "[skip ci] Automatic release of version $VERSION"
-
git commit -m "[skip ci] Automatic release of version $VERSION"
-
git
show
-
git
push --set-upstream origin ivy-repo
#
- git push --set-upstream origin ivy-repo
only
:
#
-
git push ivy-repo
-
tags
tags
:
tags
:
-
dockered
-
dockered
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment