diff options
| -rw-r--r-- | .gitlab-ci.yml | 39 | ||||
| -rw-r--r-- | pom.xml | 4 |
2 files changed, 41 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..79c3c9b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ + +stages: + - build + - clean + - deploy + +build: + stage: build + script: + - echo 'exec mvn clean package' + - echo 'tag:' $CI_COMMIT_TAG + - mvn clean package -Dmaven.test.skip=true + only: + - tags + tags: + - galaxy + +clean: + stage: clean + script: + - echo 'build job fail, exec mvn clean' + - echo 'tag:' $CI_COMMIT_TAG + - mvn clean + when: on_failure + only: + - tags + tags: + - galaxy +deploy: + stage: deploy + script: + - echo 'exec mvn package & docker build' + - echo 'tag:' $CI_COMMIT_TAG + - mvn clean package -Dmaven.test.skip=true docker:build -DdockerImageTags=$CI_COMMIT_TAG + when: on_success + only: + - tags + tags: + - galaxy
\ No newline at end of file @@ -30,7 +30,7 @@ <repository> <id>nexus</id> <name>Team Nexus Repository</name> - <url>http://192.168.40.125:8099/content/groups/public</url> + <url>http://192.168.40.153:8099/content/groups/public</url> </repository> </repositories> @@ -38,7 +38,7 @@ <pluginRepository> <id>nexus</id> <name>Team Nexus Repository</name> - <url>http://192.168.40.125:8099/content/groups/public</url> + <url>http://192.168.40.153:8099/content/groups/public</url> </pluginRepository> </pluginRepositories> |
