Eberhard Beilharz
bae70549e6
chore(ci): Force Jenkins build when building master
2020-02-21 15:22:07 +01:00
Eberhard Beilharz
8f7ca9b9d7
chore(ci): Improve output when triggering Jenkins jobs
...
- Output the result when triggering a Jenkins job
- Indent the output of triggering TeamCity jobs
2020-02-21 14:48:50 +01:00
Eberhard Beilharz
ae8ae86971
Merge pull request #2701 from keymanapp/refactor/common/hooks
...
refactor(common): Simplify and improve getting hook directory
2020-02-21 09:08:34 +01:00
Eberhard Beilharz
39717c226e
chore(linux): Fix trigger script
2020-02-20 22:33:21 +01:00
Eberhard Beilharz
8d5724a79b
fix(linux): Fix typo in previous commit
2020-02-20 21:53:20 +01:00
Eberhard Beilharz
35c6208273
refactor(common): Simplify and improve getting hook directory
2020-02-20 21:44:46 +01:00
Eberhard Beilharz
71616cbcee
chore(linux): allow to trigger Jenkins build from script
...
This change also refactors `triggerBuilds` to use the definitions
from `trigger-definitions.config`. Jenkins configurations are
identified by the suffix `_Jenkins`.
2020-02-20 16:34:14 +01:00
Eberhard Beilharz
fefc1c27af
chore(ci): Rename trigger-definitions.sh to *.config
...
This makes it easier to see that this file doesn't contain any
executable code which makes it slightly easier to find the relevant
scripts in this directory that get executed on their own.
2020-02-17 14:12:20 +01:00
Marc Durdin
255e4f4b7a
chore: Merge branch 'master' into chore/beta-to-master-p9s2-1
2020-02-17 10:11:15 +11:00
Marc Durdin
f73d64ab13
fix(ci): KEYMAN_ROOT
2020-02-10 13:23:39 +11:00
Marc Durdin
a1a70f7b72
fix(ci): don't include build-utils.sh
...
It depends on 14.0 alpha version infrastructure; we
shouldn't need it for triggering the test builds for
beta.
2020-02-10 13:20:34 +11:00
Marc Durdin
dd9cc4c50d
chore(ci): address review comments
2020-02-10 13:04:06 +11:00
Marc Durdin
265e69fbbc
chore(ci): address review comments
2020-02-10 13:03:39 +11:00
Marc Durdin
77c42909c2
chore(ci): add build scripts for beta tests
2020-02-10 10:53:33 +11:00
Marc Durdin
85f8eb4ec5
chore(ci): add +x to run-required-test-builds
2020-02-10 09:29:20 +11:00
Marc Durdin
f11a567397
fix(ci): re-enable build configs
2020-02-10 07:57:38 +11:00
Marc Durdin
c868f047f2
fix(ci): cleanup branch spec
2020-02-10 07:56:16 +11:00
Marc Durdin
ffacdfb1ee
chore(ci): test triggers
2020-02-10 07:50:23 +11:00
Marc Durdin
df86a608ef
chore(ci): test triggers
2020-02-10 07:48:00 +11:00
Marc Durdin
829fa8469a
fix(ci): use branch spec
2020-02-10 07:40:47 +11:00
Marc Durdin
78993b686d
chore(ci): actually trigger builds
2020-02-10 07:26:10 +11:00
Marc Durdin
fe5071ea54
fix(ci): refactor to build based on central config
...
We have setup a single build configuration Keyman:Test that is triggered
when VCS changes are detected. This looks at the changes in the PR and
determines which projects need to be built. This is cleaner than the
current mess of configurations we have in TeamCity, because the
definitions are in just one place and far easier to maintain
consistently. This will also simplify all the pull request test
configurations because they won't need to be testing for safety or
other boilerplate as they will only ever be triggered by Keyma:Test
which has already run the safety tests.
The run-required-test-builds.sh script contains the logic; the data is
basically all in trigger-definitions.sh.
2020-02-10 07:17:13 +11:00
Marc Durdin
d0005ed893
fix(ci): tweak scripts
2020-02-09 17:37:00 +11:00
Marc Durdin
f5b473f84a
fix(ci): report build status
2020-02-09 17:29:21 +11:00
Marc Durdin
1c994b57b9
chore(ci): test both messages
2020-02-08 09:10:27 +11:00
Marc Durdin
cdd6930ef5
chore(ci): testing just cancel message
2020-02-08 09:05:06 +11:00
Marc Durdin
e374d8c153
chore(ci): test build cancellation feature
2020-02-08 09:00:40 +11:00
Marc Durdin
752fd9662a
fix(ci): is-build-required failed on missing branch
...
When the remote branch was deleted before the script ran, e.g. for
an automatically merged PR, this script would fail with error 128 from
git:
fatal: ambiguous argument 'origin/master...origin/auto/version-master-14.0.9':
unknown revision or path not in the working tree.
This handles error 128 as a signal to cancel the build rather than to
fail the build. It is possible that git would return error 128 for
other situations, but I cannot currently see any significant situations
where that would arise.
2020-02-08 08:45:47 +11:00
Marc Durdin
60a36182e5
Merge pull request #2603 from keymanapp/chore/ci/is-build-required
...
chore(ci): is build required?
2020-02-07 17:28:48 +11:00
Marc Durdin
6902f7bf1c
Merge branch 'master' into chore/beta-alpha-p9s1
2020-02-07 16:25:39 +11:00
Marc Durdin
67f08b0414
chore(ci): address review comment
2020-02-07 14:21:17 +11:00
Marc Durdin
32f220cf22
chore(ci): set execute bit
2020-02-07 13:56:46 +11:00
Marc Durdin
1246693c00
chore(ci): is build required?
...
Adds a script that tests whether changes are likely
to impact the target platform and cancels the build
if not.
2020-02-07 13:42:43 +11:00
Marc Durdin
f583034d31
chore(ci): ensure latest history is uploaded in ci
2020-02-07 09:50:05 +11:00
Marc Durdin
b4344da838
chore(ci): add bullets to history
2020-02-07 09:49:49 +11:00
Joshua Horton
0574d28eea
Update resources/git-hooks/commit-msg-defs
...
Co-Authored-By: Darcy Wong <darcywong00@users.noreply.github.com>
2020-02-06 11:53:49 +07:00
jahorton
3c4679ae6f
feat(common): Proper docs, extra tweak
2020-02-06 11:01:08 +07:00
jahorton
c81729fbe0
feat(common): creates common type/scope defn script for inclusion
2020-02-06 10:56:39 +07:00
Marc Durdin
e2b287768c
chore(ci): tweak scopes
2020-02-06 10:42:58 +07:00
Marc Durdin
f4c205e9fc
chore(ci): tweak commit hook
2020-02-06 10:42:54 +07:00
jahorton
538aa7d14b
feat(common): tweaks documentation, does cleanup
2020-02-04 12:53:44 +07:00
jahorton
714198c777
feat(common): Autogenerates commit prefixes from branch name
2020-02-04 12:42:58 +07:00
jahorton
886e7d294d
feat(common): basic prepare-commit-msg setup, link
2020-02-04 10:48:17 +07:00
Marc Durdin
3e2e40a3b2
chore(ci): address review comment
2020-02-04 12:12:07 +11:00
Marc Durdin
7fc2a3e3f5
chore(ci): tweak scopes
2020-02-04 09:25:44 +11:00
Marc Durdin
2081a8275d
chore(ci): tweak commit hook
2020-02-04 09:02:35 +11:00
Marc Durdin
06b5feed0c
chore: history parsing and validation
2020-02-04 08:46:34 +11:00
Marc Durdin
fad3ff2822
chore(ci): add date to history headings
2020-02-04 06:53:30 +11:00
Marc Durdin
bb53e9e3ed
chore(ci): test builds on master/beta
2020-02-04 06:35:51 +11:00
Marc Durdin
6830ed1539
chore: remove commented oid
2020-02-03 12:44:50 +11:00