Trying using conditional logic to define stages and stges to define
scripts.
@@ -8,18 +8,23 @@ before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
-#jobs:
-# include:
-# script:
-# - mvn install -P acceptance-test,vault-acceptance-tests,jnacl
-# if: not(branch = master) and type = pull_request
-# script:
-# - mvn clean deploy -Prelease -pl shared --settings .maven.xml -DskipTests=true
-# if: branch = master and type = push
-
-
+jobs:
+ include:
+ - stage: build
script:
- mvn install -P acceptance-test,vault-acceptance-tests,jnacl
+ - stage: deploy
+ script:
+ - mvn clean deploy -Prelease -pl shared --settings .maven.xml -DskipTests=true
+
+stages:
+ - name: build
+ if: branch != master and type = pull_request
+ - name: deploy
+ if: branch = master and type = push
+
+#script:
+#- mvn install -P acceptance-test,vault-acceptance-tests,jnacl
jdk:
- oraclejdk8
