Compare commits

...

246 Commits

Author SHA1 Message Date
Travis CI User
425e645dda [maven-release-plugin][skip ci]prepare release acs-community-packaging-6.3.0-repo-4735-3-1 2020-03-06 15:34:15 +00:00
David Edwards
b596494cec Update .travis.yml
Fixed lack of mvn credentials [skip ci]
2020-03-06 15:04:18 +00:00
David Edwards
4e1dd64ef6 Update .travis.yml
[skip ci]
2020-03-06 14:44:05 +00:00
David Edwards
2e241219da REPO-4735 move verifytags to before install to fail fast
[trigger-release]
Resulting build should fail release stage due to lack of release version.
Test stage should pass.
Will then test applying custom config to build trigger for release stage.
2020-03-06 14:26:45 +00:00
David Edwards
5209576dd9 Prepare for test release
[skipTests][trigger-release][trigger-company-release]
2020-03-06 14:23:37 +00:00
David Edwards
7d6e4f5fdf Move v2 scripts to v2 folder. Move v1 scripts back to travis root
[skip ci]
2020-03-06 14:19:47 +00:00
David Edwards
9c25438af3 Update .travis.yml
Testing the $travis-commi-message variable [skipTests]
2020-03-06 14:04:05 +00:00
David Edwards
ee0061cbfc Update verifyReleaseTag.sh
update comments [skip ci]
2020-03-06 14:03:13 +00:00
David Edwards
b6b1f5392c REPO-4735 remove error exit. Error handling is done by scripts and provide feedback.
[skipTests]
2020-03-06 13:41:28 +00:00
David Edwards
c526fb9356 Updated commit message and preparing for release test
Deliberately not providing release variables to test failure.
2020-03-06 13:36:28 +00:00
David Edwards
33bb9ea9eb Remove branch for deploy as prepare script works
[skipTests][trigger-release] [trigger-company-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-repo-4735-3-1][comRelease=202003-test]
2020-03-06 13:25:16 +00:00
David Edwards
9652e3f0c9 Fix companyReleaseDeployment.sh
removed -v flag
[skipTests][trigger-release] [trigger-company-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-repo-4735-3-1][comRelease=202003-test]
2020-03-06 13:22:31 +00:00
David Edwards
ca72b90524 Update verifyReleaseTag.sh
[skipTests][trigger-release] [trigger-company-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-repo-4735-3-1][comRelease=202003-test]
2020-03-06 13:16:43 +00:00
David Edwards
3a50f4493e Add -v flag
[skipTests][trigger-release] [trigger-company-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-repo-4735-3-1][comRelease=202003-test]
2020-03-06 12:59:41 +00:00
David Edwards
e635f568a5 REPO-4735 Rearrange files add new method of extracted variables to all scripts
Will run all stages with dummy scripts so that nothing is deployed but variable extraction takes place.
[skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-repo-4735-3-1][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]
2020-03-06 12:55:54 +00:00
David Edwards
3b2676dfb1 REPO-4735 fix refactored scripts
[skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]
2020-03-06 12:39:04 +00:00
David Edwards
b1db47e532 File for testing bash script
To be deleted before PR [skip ci]
2020-03-06 12:04:40 +00:00
David Edwards
68b572ac74 Renamed file correctly....
[skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]
2020-03-06 12:02:21 +00:00
David Edwards
259f844045 REPO-4735 Updated travis to use nes script updated common_function location
[skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]'
2020-03-06 11:59:36 +00:00
David Edwards
0fc5dc59a4 REPO-4735 Added function script and new varify tag version
Big test message below:

[skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]
2020-03-06 11:53:26 +00:00
David Edwards
8fd7286cf0 REPO-4735 Update maven scripts
Travis seems to have issues passing the TRAVIS_COMMIT_MESSAGE as an argument to bash scripts. Using it directly within the script seems to fix that issue:
[skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]'
2020-03-06 11:14:27 +00:00
David Edwards
b014bbc6c0 [skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]' 2020-03-06 11:08:56 +00:00
David Edwards
f1314a81eb [skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3] 2020-03-06 11:04:27 +00:00
David Edwards
d43f989693 [skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]' 2020-03-06 11:01:51 +00:00
David Edwards
aaf51bfdfe [skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]' 2020-03-06 11:01:00 +00:00
David Edwards
29440ba9f8 Update .travis.yml
[skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]'
2020-03-06 10:59:05 +00:00
David Edwards
313a4cff7e [trigger-release][trigger-company-release][skipTests] 2020-03-06 10:57:02 +00:00
David Edwards
1d544beb30 [trigger-release][trigger-company-release][skipTests] 2020-03-06 10:52:33 +00:00
David Edwards
83aab7e202 REPO-4735 Moved job restrictions to stage
If the stage conditions were met it seemed to override the condiitions further down.
[skipTests][trigger-release][release=6.3.0][devRelease=6.3.0-SNAPSHOT]
No build should be triggered as the current branch is no enabled
2020-03-06 10:49:07 +00:00
David Edwards
73c099f3c9 [skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]' 2020-03-06 10:36:16 +00:00
David Edwards
946055520f [skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]' 2020-03-06 10:32:51 +00:00
David Edwards
d375e8d5aa REPO-4735 add debuggin to new method
[skipTests] message [trigger-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-A5][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]
2020-03-06 10:27:35 +00:00
David Edwards
9c23fe4ae2 REPO-4735 Removed branch from build
PR has been created so the build will be trigger twice if left in config. Also remove PR restriction so that it can be tested with new variable assignment.
[skipTests][trigger-release][release=6.3.0-repo-4735-3-1][devRelease=6.3.0-SNAPSHOT]
2020-03-06 10:20:46 +00:00
David Edwards
e4a32ba3d2 Update .travis.yml
Add branch back to build. [skip ci] So that we can test triggering manually from travis
2020-03-06 10:12:40 +00:00
David Edwards
807a27f9cb REPO-4735 Add alternative build script
Added 2 script designed to extract the release and development versions required for the release process. V1 extracts all "commit variables" into and array and then uses a case statement to assign the variables. V2 extracts the desired variable directly into a variable.
2020-03-06 10:12:02 +00:00
David Edwards
6e53385d71 Only removing artefacts build during jobs from cache [skip ci] 2020-03-05 09:52:55 +00:00
David Edwards
83a4c4bfe1 Revert "commit to trigger build"
This reverts commit 310db7714d.
2020-03-04 12:07:48 +00:00
David Edwards
310db7714d commit to trigger build
commit to trigger build [skip ci]
2020-03-04 12:07:44 +00:00
David Edwards
fcc74e0414 Delete backup poms [skip ci] 2020-03-04 12:03:45 +00:00
David Edwards
0af1ca1f32 [skip ci] 2020-03-04 12:01:56 +00:00
David Edwards
4f493b8c7f Revert "Update pom.xml"
This reverts commit 5dd00a9f24.
2020-03-04 12:01:12 +00:00
David Edwards
cee238f48d Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-03-04 12:00:51 +00:00
David Edwards
874dd99278 Revert "Undo phantom commit to branch [skip ci]"
This reverts commit 2227fd652e.
2020-03-04 12:00:38 +00:00
David Edwards
7f533da876 Revert "Undo phantom commit [skip ci]"
This reverts commit 4d2b0d4580.
2020-03-04 12:00:31 +00:00
David Edwards
5dd00a9f24 Update pom.xml
[skip ci]
2020-03-04 11:55:45 +00:00
David Edwards
2b0f83f1c7 Delete pom.xml.versionsBackup
[skip ci]
2020-03-04 11:53:10 +00:00
David Edwards
360ee13fa8 Remove test changes [skip ci] 2020-03-04 11:52:03 +00:00
David Edwards
4d2b0d4580 Undo phantom commit [skip ci] 2020-03-04 11:51:03 +00:00
David Edwards
2227fd652e Undo phantom commit to branch [skip ci] 2020-03-04 11:50:30 +00:00
David Edwards
f71a8df6e3 Revert test versioning 2020-03-04 11:44:22 +00:00
David Edwards
b6008b88e9 Update pom.xml
Remove whitespace [skip ci]
2020-03-04 11:40:37 +00:00
David Edwards
ec2acc8abd Update pom.xml
Remove test suffix to image name
2020-03-04 11:39:59 +00:00
David Edwards
e8e8a52fb6 Update .travis.yml
set Whitesource scan to develop
2020-03-04 11:38:39 +00:00
David Edwards
9e2d510af0 Travis remove commits [skip ci] 2020-03-04 11:38:11 +00:00
David Edwards
09e347aa0a Merge branch 'develop' into feature/REPO-4735_Add-release-stages-2 2020-03-04 11:35:12 +00:00
David Edwards
664d008f58 Prepare for PR [skip ci] 2020-03-04 11:27:25 +00:00
David Edwards
3f4eb68c43 Tidy travis scripts [skip ci]
Removed -v flag
Updated TODO sections to indicated where CD could be implemented.
Cleaned up error messages.
Renamed buildRelease.sh to mavenRelease.sh
2020-03-04 11:22:45 +00:00
David Edwards
be5ff202b0 Revert "Skip release stage to test deployment [no-test]"
This reverts commit eca7ad2e35.
2020-03-04 11:02:49 +00:00
David Edwards
f9dfaa867d Revert "test speed of -q install [no-test]"
This reverts commit f5629a6621.
2020-03-04 10:55:14 +00:00
David Edwards
f5629a6621 test speed of -q install [no-test]
[trigger-release]
2020-03-04 10:54:58 +00:00
David Edwards
eca7ad2e35 Skip release stage to test deployment [no-test]
[trigger-release][trigger-company-release]
2020-03-04 10:50:42 +00:00
David Edwards
5b9ba58f11 Revert "Skip release stage to test aws deployment section"
This reverts commit fa378aa5af.
2020-03-04 10:45:06 +00:00
David Edwards
c2a64afa2a Bump release version [trigger-release][no-test][trigger-company-release] 2020-03-04 10:38:06 +00:00
David Edwards
652b562e02 Update Dockerfile
to match acs-packaging [skip ci]
2020-03-04 10:26:29 +00:00
David Edwards
b53491d781 Removed extra '/' in upload dir
This was creating strange artefact locations that were breaking the company release stage
2020-03-04 10:22:42 +00:00
David Edwards
fa378aa5af Skip release stage to test aws deployment section 2020-03-04 10:22:02 +00:00
David Edwards
9edab2fc14 Revert "Delete engineeringReleaseDeployment.sh"
This reverts commit 4db43ff229.
2020-03-04 10:06:04 +00:00
David Edwards
1cf77f20a5 Make verbose
[skip ci]
2020-03-04 09:57:16 +00:00
Travis CI User
a663ccc5bc [maven-release-plugin][skip ci]prepare for next development iteration 2020-03-04 09:34:39 +00:00
Travis CI User
e4da378421 [maven-release-plugin][skip ci]prepare release acs-community-packaging-6.3.0-repo-4735-2-15 2020-03-04 09:34:33 +00:00
David Edwards
67428fa4c5 Update .travis.yml
[no-test][trigger-release][trigger-company-release]
2020-03-04 09:27:13 +00:00
David Edwards
4db43ff229 Delete engineeringReleaseDeployment.sh
Not required, using travis functionalitly for eng s3 deployment.
[no-test][trigger-release][trigger-company-release]
2020-03-04 09:11:01 +00:00
David Edwards
87c33e8dc3 Tidy up stage if statements 2020-03-04 09:09:32 +00:00
David Edwards
24cdd98cf8 Skip script stage [no-test][trigger-company-release] 2020-03-03 17:25:42 +00:00
Travis CI User
9978d90a57 [maven-release-plugin][skip ci]prepare for next development iteration 2020-03-03 16:38:07 +00:00
Travis CI User
4eb60992cb [maven-release-plugin][skip ci]prepare release acs-community-packaging-6.3.0-repo-4735-2-14 2020-03-03 16:38:01 +00:00
David Edwards
e4cc86cdf7 Update .travis.yml
[trigger-release][trigger-company-release][no-test]
2020-03-03 16:30:32 +00:00
David Edwards
d6f9b00fc4 Revert "skip install stage (not needed)"
This reverts commit 2918153744.
2020-03-03 16:29:39 +00:00
David Edwards
842380e072 Update .travis.yml
Not required, when would you every both trigger and prevent a release...? [skip ci]
2020-03-03 16:24:58 +00:00
David Edwards
288978012d Clean variables + comments [skip ci] 2020-03-03 16:21:18 +00:00
David Edwards
5bcf4be8a9 Update .travis.yml
clean commits
[no-test]
2020-03-03 16:15:17 +00:00
David Edwards
cacc1e9715 Revert version to SNAPSHOT
[no-test][trigger-release][trigger-company-release]
2020-03-03 16:01:34 +00:00
David Edwards
bb6b260c4d Remove extra whitespace
[no-test][trigger-release][trigger-company-release]
2020-03-03 15:56:21 +00:00
David Edwards
4336a01ac7 Update .travis.yml
Move if statements to stages as each stage only has 1 job.
Added [no-test] commit message to prevent test stages being run.
No build should be executed as a result of this commit
2020-03-03 15:54:38 +00:00
David Edwards
ae4f308c73 Revert "Revert "Revert "Update .travis.yml"""
This reverts commit 90ba6efbc8.
2020-03-03 15:53:49 +00:00
David Edwards
90ba6efbc8 Revert "Revert "Update .travis.yml""
This reverts commit 9549958121.
2020-03-03 15:53:18 +00:00
David Edwards
9549958121 Revert "Update .travis.yml"
This reverts commit e945b637a1.
2020-03-03 15:52:42 +00:00
David Edwards
e945b637a1 Update .travis.yml
Move if statements to stages as each stage only has 1 job.
Added [no test] commit message to prevent test stages being run.
No build should be executed as a result of this commit.
2020-03-03 15:50:50 +00:00
David Edwards
ebb488e8e0 Remove comments
[trigger release][trigger company release]
2020-03-03 15:44:49 +00:00
David Edwards
676013d4d3 Moved release versioning to global variables to be shared accross stages
Company release stage also needs access to release version.
Run full build:
[trigger release][trigger company release]
2020-03-03 15:38:56 +00:00
David Edwards
ec254dc26a Allowing company release to run independently of eng release
Full release test:
[trigger release][trigger company release]
2020-03-03 15:35:25 +00:00
David Edwards
2918153744 skip install stage (not needed)
[trigger release][trigger company release]
2020-03-03 15:24:31 +00:00
David Edwards
b74e130f6f Add stricter commit message to ensure eng release is done with company release
[trigger release] [trigger company release]
2020-03-03 15:21:49 +00:00
David Edwards
a780c19d66 Remove alternative solutions
Add test comm_release version and bump release version.
[trigger release]
Require new commit message for company release: [trigger company release]
2020-03-03 15:18:55 +00:00
David Edwards
da032b2da0 Delete alternative solutions, Update aws variables
As we need to access to 2 s3 buckets,  and the release bucket needs to use the aws cli new variable names are used for the staging bucket aws credentials and the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY will be added to travis as environment variables for the scripts in the Company Release stage to use.
2020-03-03 14:56:45 +00:00
David Edwards
c80e759274 Update prepareEngineeringRelease.sh
Add check for release version
2020-03-03 11:14:15 +00:00
David Edwards
9dd13c2464 Update .travis.yml
Remove extra deploy script from Engineering release
2020-03-03 11:13:49 +00:00
David Edwards
059e085d6e Add script to create deployment directory
This allows a single s3 deploy stage and provides a workaround for the glob alias not working as expected in travis.yml
[trigger release]
2020-03-03 10:53:27 +00:00
David Edwards
55bcd3f5b6 escape *
[trigger release]
2020-03-03 10:45:39 +00:00
David Edwards
f35d66c044 Update .travis.yml
[trigger release]
2020-03-03 10:42:52 +00:00
David Edwards
276bccf3f4 Skip mvn release stage while testing deploy 2020-03-03 10:42:39 +00:00
David Edwards
b22054537d Update .travis.yml
[trigger release]
2020-03-03 10:11:16 +00:00
David Edwards
46cff21c1b add comments 2020-03-03 09:54:00 +00:00
David Edwards
389f5a75ca Remove local dir and attempt glob again...
[trigger release]
2020-03-03 09:51:46 +00:00
David Edwards
03a5b43658 Update region to region: "eu-west-1" 2020-03-03 09:51:24 +00:00
David Edwards
480e6ad9dd Turn off release stage to test deployment
AWS creds do not work atm. This is to test the correct files are selected or deployment stages.
[trigger release]
2020-03-03 09:34:13 +00:00
David Edwards
00dbbca169 Change glob to file
"glob" does not seem to be working, updating to file as only a single file is needed for this deployment section.
2020-03-03 09:33:11 +00:00
Travis CI User
12501e0442 [maven-release-plugin][skip ci]prepare for next development iteration 2020-03-02 21:50:44 +00:00
Travis CI User
8d06e9b616 [maven-release-plugin][skip ci]prepare release acs-community-packaging-6.3.0-repo-4735-2-12 2020-03-02 21:50:38 +00:00
David Edwards
730a51b963 Update .travis.yml
[trigger release]
2020-03-02 21:43:57 +00:00
David Edwards
e9b13bc42f Update .travis.yml
[trigger release]
2020-03-02 21:43:06 +00:00
David Edwards
4229dd72d0 [trigger release] fix build script 2020-03-02 21:41:54 +00:00
David Edwards
0eadab2c0f [trigger release] 2020-03-02 21:11:58 +00:00
David Edwards
3b5430935c disable docker push 2020-03-02 21:11:37 +00:00
David Edwards
eee813be52 Update deploy 2020-03-02 21:10:31 +00:00
Travis CI User
bd17b7b65b [maven-release-plugin][skip ci]prepare for next development iteration 2020-03-02 20:43:25 +00:00
Travis CI User
9b3c0a5200 [maven-release-plugin][skip ci]prepare release acs-community-packaging-6.3.0-repo-4735-2-11 2020-03-02 20:43:19 +00:00
David Edwards
e21231cacb [trigger release] 2020-03-02 20:14:30 +00:00
David Edwards
def5668e86 Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-03-02 20:09:38 +00:00
David Edwards
27de8d313a bump version [trigger release] 2020-03-02 20:09:35 +00:00
Travis CI User
afec08043c [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-6.3.0-repo-4735-2-10 2020-03-02 19:59:53 +00:00
Travis CI User
65ae71832d [maven-release-plugin][skip ci]prepare release acs-community-packaging-6.3.0-repo-4735-2-10 2020-03-02 19:59:25 +00:00
David Edwards
852b32a1b7 Re-add install phase [trigger release]
Creates a cache before release stage to prevent timeout
2020-03-02 19:52:37 +00:00
Travis CI User
f78c38e3a6 [maven-release-plugin][skip ci]prepare for next development iteration 2020-03-02 19:36:37 +00:00
Travis CI User
d580b98697 [maven-release-plugin][skip ci]prepare release acs-community-packaging-6.3.0-repo-4735-2-10 2020-03-02 19:36:31 +00:00
David Edwards
4852e6855f fix build script [trigger release] 2020-03-02 19:10:17 +00:00
David Edwards
00d916f1b1 Fix travis [trigger release] 2020-03-02 19:03:56 +00:00
David Edwards
60f03f9837 Make build script print commands to terminal 2020-03-02 17:40:17 +00:00
David Edwards
280e52cd52 [trigger release] Remove extra install phase add travis_wait 2020-03-02 17:37:44 +00:00
David Edwards
c6bf98f741 [trigger release] Bump release version to 6.3.0-repo-4735-2-10 2020-03-02 17:35:05 +00:00
David Edwards
5091af8e55 Add commit message trigger to company release stage 2020-03-02 17:35:01 +00:00
David Edwards
0d5ad8f17a Update .travis.yml 2020-03-02 17:31:15 +00:00
David Edwards
800b73ec5e Enable company release stage 2020-03-02 17:31:00 +00:00
David Edwards
6ef453586e Enable native S3 upload
comment out aws cli upload
2020-03-02 17:27:25 +00:00
David Edwards
acd9abbf27 Update .travis.yml 2020-03-02 17:20:37 +00:00
David Edwards
0472996186 Update .travis.yml 2020-03-02 17:20:32 +00:00
David Edwards
bd84cd9e65 Add company release stage 2020-03-02 17:20:29 +00:00
David Edwards
7ccf7846c1 Enable deploy stage on branch + company release stage 2020-03-02 17:20:16 +00:00
David Edwards
4e002e55c2 Re-enable build script, fix after_failure 2020-03-02 17:18:53 +00:00
David Edwards
3237b95d9c Update verifyReleaseTag.sh
Instead of using a hard coded string the image name is retrieved from the docker-alfresco/pom.xml
2020-03-02 17:13:54 +00:00
David Edwards
19fdbe3840 Update image.name for test-releases 2020-03-02 17:08:02 +00:00
David Edwards
9599815cd3 Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-03-02 17:07:33 +00:00
David Edwards
58d370105e Update buildRelease.sh
Fail if versions not set.
Add git email to config.
Update comments
2020-03-02 17:07:30 +00:00
David Edwards
0684049e53 combine release stages 2020-03-02 16:55:04 +00:00
David Edwards
5f09b585d0 Add commit message requirement 2020-03-02 16:54:51 +00:00
Travis CI User
fb0732c341 [maven-release-plugin][skip ci] prepare for next development iteration 2020-03-02 15:59:13 +00:00
Travis CI User
f95dc7f7a1 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-9 2020-03-02 15:59:07 +00:00
David Edwards
3ab9153a66 Update .travis.yml 2020-03-02 15:30:23 +00:00
David Edwards
a90447885e Add dockerhub credentials 2020-03-02 15:22:54 +00:00
David Edwards
beadd08090 Remove alfresco-public, rename QUAY creds 2020-02-28 17:52:08 +00:00
David Edwards
89fab9b670 Bump release version 2020-02-28 17:41:48 +00:00
Travis CI User
193e4116d0 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 17:13:34 +00:00
Travis CI User
391eb399a7 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-7 2020-02-28 17:13:28 +00:00
David Edwards
028dfc59a3 Update .travis.yml 2020-02-28 16:45:07 +00:00
David Edwards
210d3d070a Correct naming of image
Should now be: alfresco/alfresco-content-repository-community-test-release:tag
2020-02-28 16:28:10 +00:00
David Edwards
07f257dda7 Silence install, increment release version 2020-02-28 16:27:13 +00:00
Travis CI User
5f85067681 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 16:08:45 +00:00
Travis CI User
384aca442d [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-6 2020-02-28 16:08:40 +00:00
David Edwards
541d209448 Update Dockerfile 2020-02-28 15:40:37 +00:00
David Edwards
52f03e7a7f Rearrange pom profiles 2020-02-28 15:40:25 +00:00
David Edwards
189b88b812 Bump release version 2020-02-28 15:36:49 +00:00
David Edwards
01874c8cb5 Update .travis.yml 2020-02-28 15:36:27 +00:00
David Edwards
2424ea9edd Update pom.xml 2020-02-28 15:36:12 +00:00
David Edwards
c1545b37ea Use project version as image tag for communityDocker (temp) 2020-02-28 15:36:04 +00:00
David Edwards
8a8f58c8d7 Rename images 2020-02-28 15:34:48 +00:00
Travis CI User
a5041bcc83 [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 15:28:50 +00:00
Travis CI User
861112707b [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 15:28:23 +00:00
David Edwards
ebe2a6f75a Comment out dockerhub creds 2020-02-28 15:24:18 +00:00
David Edwards
ffa9149176 Run install
To download dependencies before trying release stage, to hopefully prevent time out.
2020-02-28 15:17:18 +00:00
David Edwards
88af802b4c Update version to 6.3.0-SNAPSHOT 2020-02-28 15:11:16 +00:00
David Edwards
ade117c405 Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-02-28 15:09:52 +00:00
Travis CI User
e712b9ded8 [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 15:08:18 +00:00
David Edwards
4ca2e28f65 Use development_version variable 2020-02-28 15:07:56 +00:00
Travis CI User
12a4391350 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 15:07:51 +00:00
David Edwards
131d4d053a Add cache maintainance 2020-02-28 15:07:23 +00:00
David Edwards
92c0dc7aae Timeouts.... 2020-02-28 14:41:58 +00:00
David Edwards
b56b82d4d9 Revert "Add build stage to cache downloads, to prevent timeout..."
This reverts commit fbb2d2836e.
2020-02-28 14:41:09 +00:00
David Edwards
7b005725b5 Revert "Update .travis.yml"
This reverts commit 3e70f80a74.
2020-02-28 14:41:05 +00:00
David Edwards
3e70f80a74 Update .travis.yml 2020-02-28 14:40:10 +00:00
David Edwards
fbb2d2836e Add build stage to cache downloads, to prevent timeout... 2020-02-28 14:38:26 +00:00
Travis CI User
ca0a19ed3d [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 14:20:29 +00:00
Travis CI User
a41a30bea9 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 14:20:22 +00:00
David Edwards
2ed693a822 Fix docker-maven plugin version 2020-02-28 13:52:41 +00:00
David Edwards
e7c71ac239 Update .travis.yml 2020-02-28 13:49:20 +00:00
David Edwards
de795f8b63 Update .travis.yml 2020-02-28 13:48:53 +00:00
David Edwards
2f35d58503 Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-02-28 13:47:57 +00:00
David Edwards
c85fe9924b Combine release stages 2020-02-28 13:47:53 +00:00
David Edwards
abb3b4cbf3 Use docker-maven plugin instead of fabric8-maven plugin
fabric8 maven plugin attempts to build in Kubernetes mode. This is not needed to create acs images.
2020-02-28 13:47:25 +00:00
Travis CI User
236a943643 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 13:45:34 +00:00
Travis CI User
15ac47205f [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-3 2020-02-28 13:45:28 +00:00
David Edwards
768ee33878 Set version to 6.3.0-SNAPSHOT 2020-02-28 13:45:16 +00:00
David Edwards
92ff0105e4 Update .travis.yml 2020-02-28 13:19:26 +00:00
David Edwards
8d5fabf930 Comment out apply amps 2020-02-28 13:17:06 +00:00
David Edwards
d09a9b44df Update .travis.yml 2020-02-28 13:16:42 +00:00
Travis CI User
2ee12e749b [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 12:11:00 +00:00
Travis CI User
6de667cc56 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-2 2020-02-28 12:10:54 +00:00
David Edwards
63bce60c31 Add docker login details to settings and remove from travis.yml 2020-02-28 11:44:36 +00:00
David Edwards
0580c3820a Update release version to 6.3.0-<dev_release> + uncomment apply amps
The warfile generated doesn't recognise the repo-xxxx- release version and has a version of 0.0.0. This may be the cause of the docker file errors.
2020-02-28 11:43:56 +00:00
David Edwards
ce784460e9 Rename image name, add alias for debugging
We don't want to accidentally override the latest tag with WIP builds.
2020-02-28 11:41:59 +00:00
David Edwards
9496feaefe Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-02-28 11:41:13 +00:00
Travis CI User
06a65098c0 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 09:51:19 +00:00
Travis CI User
7929123554 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-2-2 2020-02-28 09:51:13 +00:00
David Edwards
95aaa819e0 Add clean install with release:perform
The dockerfile recommends this when building....
2020-02-28 09:34:18 +00:00
David Edwards
4041c9495d Separate release jobs put detailed logging on perform
NOTE. This is done with the "RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install ${TOMCAT_DIR}/amps ${TOMCAT_DIR}/webapps/alfresco -directory -nobackup -force" commented out as this was a point of error in the acs-packaging build number 1636 https://travis-ci.com/Alfresco/acs-packaging/builds/150667508
2020-02-28 09:24:53 +00:00
Travis CI User
bd96c27d37 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-27 17:25:38 +00:00
Travis CI User
ff9685ac67 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-2-1 2020-02-27 17:25:33 +00:00
David Edwards
8d3762f416 Bump release version 2020-02-27 16:59:38 +00:00
Travis CI User
ed26c7b258 [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-repo-4735-16 2020-02-27 16:56:16 +00:00
Travis CI User
117b65879f [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-16 2020-02-27 16:56:05 +00:00
David Edwards
068e7066bf add extra logging and remove release:clean 2020-02-27 16:54:29 +00:00
Travis CI User
6a6df0dccd [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-repo-4735-16 2020-02-27 16:48:05 +00:00
Travis CI User
6ed957ca77 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-16 2020-02-27 16:47:21 +00:00
David Edwards
9c4b53bec8 Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-02-27 16:20:56 +00:00
David Edwards
656c3a9c0f Update .travis.yml 2020-02-27 16:20:51 +00:00
Travis CI User
9b07a93890 [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-repo-4735-16 2020-02-27 16:19:18 +00:00
Travis CI User
d0e6c6bed7 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-16 2020-02-27 16:19:05 +00:00
David Edwards
66044db9cc Comment out amp installation
Potential place for errors.
2020-02-27 16:01:53 +00:00
Travis CI User
1df4c8f7c2 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-27 13:11:34 +00:00
Travis CI User
1e6b797d57 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-16 2020-02-27 13:11:27 +00:00
David Edwards
d03689f5d3 Update release version 2020-02-27 13:09:44 +00:00
Travis CI User
99fc0a330a [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-repo-4735-15 2020-02-27 12:47:50 +00:00
Travis CI User
16ad37b169 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-15 2020-02-27 12:47:04 +00:00
David Edwards
1798d0fd2b Remove detailed logging
Hit log limit in travis
2020-02-27 12:21:23 +00:00
Travis CI User
1bb7035e68 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-27 12:09:13 +00:00
Travis CI User
65d3a861ec [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-15 2020-02-27 12:09:04 +00:00
David Edwards
524228771d REPO-4735 Fix java11 javadoc 8 error
(cherry picked from commit 91f66cdacc)
2020-02-27 11:40:07 +00:00
David Edwards
0f96d69af6 REPO-4735-Use https scm connection
(cherry picked from commit d8c15c846c)
2020-02-27 11:40:01 +00:00
David Edwards
541cb9a326 Create .travis.settings.xml 2020-02-27 11:35:05 +00:00
David Edwards
3401c50215 Make scripts executable 2020-02-27 11:28:40 +00:00
David Edwards
8d1e2a5d5f Add WIP scripts from original branch 2020-02-27 11:21:57 +00:00
David Edwards
4441e82213 Create verifyReleaseTag.sh 2020-02-27 11:21:35 +00:00
David Edwards
b95a7df236 Add branch to build 2020-02-27 11:17:16 +00:00
David Edwards
a4dcd3b5b5 Update .travis.yml 2020-02-27 11:12:18 +00:00
David Edwards
fb0d9b0b37 Replace USERNAME with LINUXUSERNAME to fix windows error 2020-02-27 11:05:54 +00:00
David Edwards
e592d0bf23 Add WIP release stages from original branch 2020-02-27 11:03:46 +00:00
David Edwards
405dd92d8d Disable test stage 2020-02-27 11:03:24 +00:00
David Edwards
48fde80eca Remove extra line 2020-02-27 11:03:10 +00:00
David Edwards
a376256826 Add stages to travis 2020-02-27 11:02:31 +00:00
David Edwards
60cd53cd2d Add branch to build 2020-02-27 11:01:57 +00:00
Ancuta Morarasu
f04fcb7df8 Fix develop branch usage instead of master 2020-02-03 12:43:27 +02:00
Meenal Bhave
05af6c8b52 Search-1979: Updated SOLR6_TAG to 1.4.1 for the tests (#510)
* Search-1979: Updated SOLR6_TAG to 1.4.1 for the tests

* Search-1979: Updated SOLR6_TAG location to quay.io for testing (until released to dockerhub after company release)

* Revert "Search-1979: Updated SOLR6_TAG location to quay.io for testing (until released to dockerhub after company release)"

This reverts commit 2da3357974.
2020-01-14 17:44:22 +00:00
DenisGabriela
7159d25c83 GOOGLEDOCS-461 : Remove old commons-lang lib from Repo AMP dependencies (#528)
- remove workaround - no longer needed
2020-01-14 15:22:54 +02:00
DenisGabriela
4763baf43a GOOGLEDOCS-463 : Release GoogleDocs 3.2.0-A2 (for 6.3.0-dev & next ACS Community release) (#540) 2020-01-13 15:50:13 +02:00
alfresco-build
3cee335139 [maven-release-plugin] prepare for next development iteration 2020-01-12 16:32:29 +00:00
alfresco-build
cd594b6fde [maven-release-plugin] prepare release acs-community-packaging-6.3.0-A5 2020-01-12 16:32:21 +00:00
Alexandru-Eusebiu Epure
9b768b5988 REPO-4920 : Release Development build 6.3.0-A5 (#539)
* Bump cmis from 1.5 to 1.6 (#397)

* Bump javax.json from 1.0.4 to 1.1.4 (#399)

* Update travis config with develop branch

* Bump fabric8-maven-plugin from 4.2.0 to 4.3.1 (#368)

* Bump alfresco-messaging-repo from 1.2.13 to 1.2.15 (#312)

* Bump httpcore from 4.4.11 to 4.4.12 (#298)

* Bump json-path from 2.3.0 to 2.4.0 (#403)

* Bump joda-time from 2.10.3 to 2.10.5 (#371)

* Bump alfresco-data-model from 8.50.2 to 8.54 (#396)

* Bump dependency.cxf.version from 3.3.2 to 3.3.4 (#374)

* Bump dataprep from 2.2 to 2.3 (#402)

* Bump dependency.jackson.version from 2.9.9 to 2.10.1 (#392)

* Bump bcprov-jdk15on from 1.62 to 1.64 (#355)

* Bump alfresco-repository from 7.134 to 8.21 (#394)

* Add retries to cmis rendition test

* Bump alfresco-remote-api from 7.107 to 8.27 (#395)

* Bump quartz from 2.3.1 to 2.3.2 (#370)

* Bump httpclient from 4.5.9 to 4.5.10 (#304)

* Bump alfresco-data-model from 8.54 to 8.55 (#405)

* Bump httpclient-cache from 4.5.9 to 4.5.10 (#303)

* Bump postgresql from 42.2.6 to 42.2.8 (#313)

* Bump groovy from 2.5.5 to 2.5.8 (#401)

* Bump bcmail-jdk15on from 1.62 to 1.64 (#356)

* Bump dependency.javax.mail.version from 1.5.1 to 1.6.2 (#398)

* Additional fixed to CMIS Rendition test

* Mark integration test with a bug

* Mark REST API test with a bug

* Bump dependency.alfresco-spring-webscripts.version from 7.8 to 7.10 (#354)

* Bump alfresco-remote-api from 8.27 to 8.28 (#406)

* Bump alfresco-repository from 8.21 to 8.22 (#407)

* Bump alfresco-repository from 8.22 to 8.24 (#408)

* Mark a test in NodeLockTests with a bug

* Bump alfresco-repository from 8.24 to 8.25 (#410)

* Bump alfresco-core from 7.22 to 7.23 (#412)

* Bump alfresco-data-model from 8.55 to 8.57 (#413)

* Bump alfresco-repository from 8.25 to 8.27 (#414)

* Bump dependency.alfresco-spring-webscripts.version from 7.10 to 7.11 (#418)

* Bump webdav from 1.0 to 1.1 (#419)

* Bump alfresco-repository from 8.27 to 8.28 (#423)

* Bump ftp from 1.0 to 1.1 (#422)

* Exclude spring-jcl from spring-orm & spring-core to guard classpath collission with commons-logging module (#417)

* Bump alfresco-repository from 8.28 to 8.31 (#428)

* Bump ftp from 1.1 to 1.2 (#430)

* Bump alfresco-remote-api from 8.28 to 8.37 (#426)

* Bump webdav from 1.1 to 1.2 (#431)

* Bump alfresco-data-model from 8.57 to 8.59 (#437)

* Bump alfresco-remote-api from 8.37 to 8.40 (#438)

* Remove demo tests

* Bump alfresco-remote-api from 8.40 to 8.44 (#443)

* Bump alfresco-data-model from 8.59 to 8.60 (#445)

* Bump utility from 3.0.14 to 3.0.16 (#444)

* Bump ftp from 1.2 to 1.3 (#447)

* Bump alfresco-remote-api from 8.44 to 8.45 (#451)

* Bump webdav from 1.2 to 1.3 (#449)

* Bump alfresco-remote-api from 8.45 to 8.46 (#452)

* REPO-4751: Upgrade to Spring 5.2

* Bump alfresco-repository from 8.38 to 8.39 (#453)

* Bump postgresql from 42.2.8 to 42.2.9 (#454)

* Bump alfresco-repository from 8.39 to 8.40 (#456)

* Bump alfresco-remote-api from 8.46 to 8.47 (#457)

* Bump alfresco-remote-api from 8.47 to 8.48 (#459)

* upgrade mockito library (#455)

* Bump alfresco-remote-api from 8.48 to 8.50 (#460)

* Bump alfresco-data-model from 8.60 to 8.61 (#462)

* Bump mockito-core from 3.0.0 to 3.2.0 (#464)

* Bump alfresco-repository from 8.40 to 8.41 (#461)

* Bump alfresco-remote-api to 8.51 and alfresco-repository to 8.42

* [maven-release-plugin] prepare release acs-community-packaging-6.3.0-A2

* [maven-release-plugin] prepare for next development iteration

* REPO-4785 Performance improvements to REST API TAS tests (#466)

* Mark test with a bug

* Mark test with a bug

* Mark test with a bug

* Mark test with a bug

* Bump restapi from 1.15 to 1.23 (#463)

* Bump alfresco-data-model from 8.61 to 8.66 (#467)

* Revert "Mark test with a bug"

This reverts commit 7a80d9c539.

* Revert "Mark test with a bug"

This reverts commit 5922f4a0fe.

* Revert "Mark test with a bug"

This reverts commit 5b6cf02b64.

* Revert "Mark test with a bug"

This reverts commit 1b874fbccb.

* REPO-4785 Remove reduced timeout config in tests

Previous iteration of improving test performance introduced a few intermittent failures into tests. This PR removes those changes, but leaves the split in the REST API tests.

* Bump alfresco-remote-api from 8.51 to 8.52 (#469)

* Bump alfresco-data-model from 8.66 to 8.67 (#471)

* Bump alfresco-core from 8.2 to 8.6 (#468)

* Bump alfresco-repository from 8.42 to 8.43 (#470)

* Bump dependencies (#472)

Bump repository to 8.44
Bump data-model to 8.68
Bump remote-api to 8.55

* Bump mockito-core from 3.2.0 to 3.2.4 (#473)

* Bump alfresco-repository from 8.44 to 8.46 (#474)

* Bump utility from 3.0.16 to 3.0.17 (#475)

* Bump restapi from 1.24 to 1.25 (#476)

* Bump alfresco-remote-api from 8.55 to 8.57 (#477)

* Bump jackson-databind 2.9.10 -> 2.10.1 (#479)

* Bump alfresco-remote-api from 8.57 to 8.59 (#481)

* Bump restapi from 1.25 to 1.26 (#483)

* Bump ftp from 1.3 to 1.4 (#484)

* Bump alfresco-core from 8.6 to 8.7 (#487)

* Bump alfresco-repository from 8.46 to 8.48 (#488)

* Bump webdav from 1.3 to 1.4 (#485)

* Bump alfresco-data-model from 8.68 to 8.70 (#489)

* Pickup upstream projects

* REPO-4739 update dependencies of tas framework (#776) (#494)

* Update all tas packages, now with Dependabot enabled
dependency.tas-utility.version>3.0.17
dependency.tas-restapi.version>1.26
dependency.tas-cmis.version>1.12
dependency.tas-email.version>1.7
dependency.tas-webdav.version>1.4
dependency.tas-ftp.version>1.4
Cherry-picked from acs-packaging PR #776

* Bump alfresco-remote-api from 8.62 to 8.63 (#496)

* Bump alfresco-core from 8.9 to 8.10 (#497)

* Bump alfresco-remote-api from 8.63 to 8.64 (#499)

* Bump alfresco-remote-api from 8.64 to 8.65 (#500)

* Bump alfresco-remote-api from 8.65 to 8.66 (#502)

* Bump alfresco-data-model from 8.72 to 8.73 (#503)

* Bump alfresco-remote-api from 8.66 to 8.67 (#505)

* Bump alfresco-remote-api from 8.67 to 8.68 (#506)

* Bump junit from 4.12 to 4.13 (#507)

* Bump alfresco-remote-api from 8.68 to 8.69 (#512)

* Bump commons-codec from 1.13 to 1.14 (#511)

* Bump alfresco-data-model from 8.73 to 8.74 (#513)

* Bump alfresco-core from 8.10 to 8.11 (#514)

* Bump dependency.jackson.version from 2.10.1 to 2.10.2 (#518)

* Bump alfresco-remote-api from 8.69 to 8.73 (#519)

* Bump webdav from 1.4 to 1.5 (#520)

* Bump alfresco-data-model from 8.74 to 8.75 (#521)

* Bump api-explorer from 6.2.0 to 6.2.1 (#524)

* Bump alfresco-core from 8.11 to 8.12 (#523)

* REPO-4917 : Update upstream projects (#517)

* REPO-4917 : Update upsteam projects
Bump remote-api to 8.73
Bump repository to 8.61
Bump data-model to 8.75
Bump core to 8.12
Bump api-explorer to 6.2.1

* Remove unsoported transformation PDF -> PDF

LocalPassThroughTransform was added and supports same source/target mimetype

* GOOGLEDOCS-463 : Release GoogleDocs 3.2.0-A1 (for 6.3.0-dev & next ACS Community release) (#526) (#527)

(cherry picked from commit ba10839e39)

* Bump alfresco-repository from 8.61 to 8.71 (#529)

* Bump alfresco-remote-api from 8.73 to 8.77 (#530)

* Bump alfresco-remote-api from 8.77 to 8.81 (#532)

* Bump alfresco-data-model from 8.75 to 8.83 (#533)

* Bump alfresco-repository from 8.71 to 8.81 (#534)

* Update versions of referenced projects

* Bump alfresco-repository from 8.81 to 8.83 (#535)

* Bump alfresco-remote-api from 8.81 to 8.82 (#536)

* Bump alfresco-data-model from 8.83 to 8.84 (#537)

* Bump api-explorer from 6.2.1 to 6.3.0 (#538)

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Alex Mukha <killerboot@users.noreply.github.com>
Co-authored-by: Abdul Mohammed <abdul.mohammed@alfresco.com>
Co-authored-by: Cristian Turlica <cristian.turlica@ness.com>
Co-authored-by: NITHIN NAMBIAR <nithinnambiar@yahoo.co.in>
Co-authored-by: alandavis <alan.davis@alfresco.com>
Co-authored-by: alfresco-build <alfresco-build@users.noreply.github.com>
Co-authored-by: David Edwards <david.edwards@alfresco.com>
Co-authored-by: DenisGabriela <Denis.Ungureanu1@ness.com>
Co-authored-by: antoniojfelix <antonio.felix@texter.ai>
2020-01-12 17:32:22 +02:00
22 changed files with 478 additions and 57 deletions

5
.gitignore vendored
View File

@@ -35,4 +35,7 @@ alf_data/
helm/alfresco-content-services-community/charts/*
helm/alfresco-content-services-community/requirements.lock
helm/alfresco-content-services-community*.tgz
helm/alfresco-content-services-community*.tgz
# Travis deployment folder
deploy_dir

49
.travis.settings.xml Normal file
View File

@@ -0,0 +1,49 @@
<settings>
<profiles>
<profile>
<id>alfresco-internal</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>alfresco-internal</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<name>Alfresco Internal Repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/internal</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>alfresco-internal</id>
<name>Alfresco Internal Repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<servers>
<server>
<id>alfresco-internal</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
<server>
<id>quay.io</id>
<username>${env.QUAY_USERNAME}</username>
<password>${env.QUAY_PASSWORD}</password>
</server>
<server>
<id>docker.io</id>
<username>${env.DOCKERHUB_USERNAME}</username>
<password>${env.DOCKERHUB_PASSWORD}</password>
</server>
</servers>
</settings>

View File

@@ -10,7 +10,9 @@ services:
cache:
directories:
- $HOME/.m2
# the cache can grow constantly
before_cache:
- rm -rf $HOME/.m2/repository/org/alfresco/acs-community-packaging
env:
global:
- VERSION_EDITION=Community
@@ -19,11 +21,22 @@ branches:
only:
- master
- develop
- feature/REPO-4735_Add-release-stages-2
stages:
- name: test
if: commit_message !~ /\[skipTests\]/
- name: engineering release
- name: company release
before_install: "cp .travis.settings.xml $HOME/.m2/settings.xml"
matrix:
include:
- name: "WhiteSource scan"
# only on develop and if it is not a PR
- stage: test
name: "WhiteSource scan"
# only on master and if it is not a PR
if: fork = false AND branch = develop AND type != pull_request
install:
- travis_retry travis_wait 30 mvn -q install "-Dversion.edition=${VERSION_EDITION}" -f war/pom.xml
@@ -88,3 +101,44 @@ matrix:
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 30 mvn install -q -f tests/tas-integration/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
- stage: Engineering Release
name: "Maven release"
if: commit_message ~= /\[trigger-release\]/ AND fork = false AND branch =~ ^(master|develop|feature/REPO-4735_Add-release-stages-2)$
# Fail the job if there is a docker image tag that matches the RELEASE_VERSION (or project version in the POM if not set)
before_install:
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
- bash ./scripts/travis/verifyReleaseTag.sh
install: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script: bash ./scripts/travis/mavenRelease.sh ${RELEASE_VERSION} ${DEVELOPMENT_VERSION}
# if the release stage fails rollback
after_failure:
- mvn release:rollback -DscmCommentPrefix="[maven-release-plugin][skip ci] "
# Copy alfresco.war and the distribution zip to deploy_dir
before_deploy: bash ./scripts/travis/prepareEngineeringRelease.sh
deploy:
- provider: s3
access_key_id: ${AWS_STAGING_ACCESS_KEY}
secret_access_key: ${AWS_STAGING_SECRET_KEY}
bucket: "alfresco-artefacts-staging"
region: "eu-west-1"
skip_cleanup: true
acl: private
local_dir: deploy_dir
upload_dir: "alfresco-content-services-community/release/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}"
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|develop|feature/REPO-4735_Add-release-stages-2)$
- stage: "Company Release"
name: "Copy to S3 Release"
if: commit_message ~= /\[trigger-company-release\]/ AND fork = false AND branch = feature/REPO-4735_Add-release-stages-2
# Nothing to build/install as we are just copying from S3 buckets
install: skip
script: skip
before_deploy: pip install awscli
delpoy:
- provider: script
script: ./scripts/travis/companyReleaseDeployment.sh ${TRAVIS_BUILD_NUMBER} ${TRAVIS_BRANCH}
on:
branch: feature/REPO-4735_Add-release-stages-2

View File

@@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-3-1</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -37,8 +37,7 @@ commons-fileupload http://jakarta.apache.org/commons/
commons-httpclient http://jakarta.apache.org/commons/
commons-io http://jakarta.apache.org/commons/
commons-jxpath http://jakarta.apache.org/commons/
commons-lang http://jakarta.apache.org/commons/
commons-lang3 http://jakarta.apache.org/commons/
commons-lang3 http://jakarta.apache.org/commons/
commons-logging http://jakarta.apache.org/commons/
commons-net http://jakarta.apache.org/commons/
commons-pool http://jakarta.apache.org/commons/

View File

@@ -5,7 +5,7 @@ FROM alfresco/alfresco-base-tomcat:8.5.43-java-11-openjdk-centos-7
# Set default user information
ARG GROUPNAME=Alfresco
ARG GROUPID=1000
ARG USERNAME=alfresco
ARG IMAGEUSERNAME=alfresco
ARG USERID=33000
# Set default environment args
@@ -73,7 +73,7 @@ RUN yum install -y fontconfig-2.13.0-4.3.el7 \
RUN mkdir -p ${TOMCAT_DIR}/conf/Catalina/localhost && \
mkdir -p ${TOMCAT_DIR}/alf_data && \
groupadd -g ${GROUPID} ${GROUPNAME} && \
useradd -u ${USERID} -G ${GROUPNAME} ${USERNAME} && \
useradd -u ${USERID} -G ${GROUPNAME} ${IMAGEUSERNAME} && \
chgrp -R ${GROUPNAME} ${TOMCAT_DIR} && \
chmod g+w ${TOMCAT_DIR}/logs && \
chmod g+rx ${TOMCAT_DIR}/conf && \
@@ -94,4 +94,4 @@ RUN mkdir -p ${TOMCAT_DIR}/conf/Catalina/localhost && \
# Changes are also required to the docker-compose/docker-compose.yml file.
# EXPOSE 8000
USER ${USERNAME}
USER ${IMAGEUSERNAME}

View File

@@ -7,12 +7,12 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-3-1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<properties>
<image.name>alfresco/alfresco-content-repository-community</image.name>
<image.name>alfresco/alfresco-content-repository-community-test-release</image.name>
<image.registry>quay.io</image.registry>
</properties>
@@ -216,12 +216,12 @@
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<configuration>
<images>
<image>
<name>${image.name}</name>
<name>${image.name}:${project.version}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
</build>
@@ -239,8 +239,8 @@
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<executions>
<execution>
<id>build-image</id>
@@ -261,8 +261,8 @@
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<configuration>
<images>
<image>
@@ -295,8 +295,8 @@
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<configuration>
<images>
<image>
@@ -335,11 +335,12 @@
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<configuration>
<images>
<image>
<alias>quay.io</alias>
<name>${image.name}:${project.version}</name>
<registry>${image.registry}</registry>
<build>
@@ -347,6 +348,7 @@
</build>
</image>
<image>
<alias>dockerhub</alias>
<name>${image.name}:${project.version}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
@@ -369,6 +371,4 @@
</build>
</profile>
</profiles>
</project>
</project>

View File

@@ -1,7 +1,7 @@
ALFRESCO_TAG=latest
TRANSFORMERS_TAG=2.1.1
SHARE_TAG=6.2.0
SOLR6_TAG=1.4.0
SOLR6_TAG=1.4.1
POSTGRES_TAG=11.4
ACTIVEMQ_TAG=5.15.8
REGISTRY=

51
pom.xml
View File

@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>acs-community-packaging</artifactId>
<name>Alfresco Content Services Community Packaging</name>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-3-1</version>
<packaging>pom</packaging>
<parent>
@@ -12,6 +12,18 @@
</parent>
<profiles>
<profile>
<id>fullBuild</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>war</module>
<module>distribution</module>
<module>public-javadoc</module>
<module>docker-alfresco</module>
</modules>
</profile>
<profile>
<id>community</id>
<modules>
@@ -25,18 +37,6 @@
<module>docker-alfresco</module>
</modules>
</profile>
<profile>
<id>fullBuild</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>war</module>
<module>distribution</module>
<module>public-javadoc</module>
<module>docker-alfresco</module>
</modules>
</profile>
<profile>
<id>all-tas-tests</id>
<modules>
@@ -46,10 +46,10 @@
</profiles>
<scm>
<connection>scm:git:git@github.com:Alfresco/acs-community-packaging.git</connection>
<developerConnection>scm:git:git@github.com:Alfresco/acs-community-packaging.git</developerConnection>
<connection>scm:git:https://github.com/Alfresco/acs-community-packaging.git</connection>
<developerConnection>scm:git:https://github.com/Alfresco/acs-community-packaging.git</developerConnection>
<url>https://github.com/Alfresco/acs-community-packaging</url>
<tag>HEAD</tag>
<tag>acs-community-packaging-6.3.0-repo-4735-3-1</tag>
</scm>
<distributionManagement>
@@ -86,6 +86,7 @@
<dependency.spring.version>5.2.4.RELEASE</dependency.spring.version>
<dependency.fabric8.version>4.4.0</dependency.fabric8.version>
<dependency.docker-maven.version>0.33.0</dependency.docker-maven.version>
<dependency.jackson.version>2.10.2</dependency.jackson.version>
<dependency.jackson-databind.version>2.10.1</dependency.jackson-databind.version>
@@ -116,6 +117,8 @@
<dependency.tas-webdav.version>1.6</dependency.tas-webdav.version>
<dependency.tas-ftp.version>1.5</dependency.tas-ftp.version>
<dependency.tas-dataprep.version>2.3</dependency.tas-dataprep.version>
<maven.build.sourceVersion>11</maven.build.sourceVersion>
</properties>
<dependencyManagement>
@@ -282,11 +285,6 @@
<artifactId>commons-digester</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
@@ -548,4 +546,15 @@
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>11</source>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-3-1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>pom</packaging>

71
scripts/playground.sh Normal file
View File

@@ -0,0 +1,71 @@
#!/bin/bash
#TO BE DELETED BEFORE MERGIN PR
commitMessage='[skipTests] message [trigger-release] [trigger-company-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-repo-4735-3-1][comRelease=202003] adding some nonsense to test the message -8y-18hrnfjif1][]1[]1r[1][f3][]3g[g]g[[]3[]g[4][]4]g4][3]455[5][6]34[]g[]g[42[r1r31443=1=3=411=3]'
testbuildcommitmessage='[skipTests][trigger-release] [trigger-company-release] [devRelease=6.3.0-SNAPSHOT] [release=6.3.0-repo-4735-3-1][comRelease=202003-test-release]'
# This echos each string of the commit message that is encased in square brackets
# Example commit message: "Commit message [message 1][message 2]" will echo "message 1" "message 2"
collectVariableTriggers() {
local regex='\[\K[^\]]*=[^\]]*(?=\])'
local s=$1
echo $s | grep -Po $regex
}
# Get the variable from a string
extractVariable() {
local regex="=\K.*"
local s=$1
echo $s | grep -Po $regex
}
# Get the variable name from the string
extractVariableName() {
local s=$1 regex='.*(?==)'
echo $s | grep -Po $regex
}
# Lets create an array containing section of the commit message in the format [*=*] ie [devRelease=repo-4735] will be added as devRelease=repo-4735
mapfile -t commitsVariables < <( echo $commitMessage | grep -Po '\[\K[^\]]*=[^\]]*(?=\])' )
for i in ${commitsVariables[@]}
do
variable=$(echo $i | grep -Po '=\K.*' )
variableName=$(echo $i | grep -Po '.*(?==)')
case $variableName in
"devRelease")
devRelease="$variable"
;;
"release")
release="$variable"
;;
"comRelease")
comRelease="$variable"
;;
*)
esac
done
echo "devRelease is equal to $devRelease"
echo "release is equal to $release"
echo "comRelease is equal to $comRelease"
echo "Let's assign some variables directly from the commit message"
releaseVersion=$(echo $commitMessage | grep -Po '\[release[^\]]*=\K[^\]]*(?=\])')
developmentVersion=$(echo $commitMessage | grep -Po '\[devRelease[^\]]*=\K[^\]]*(?=\])')
echo $releaseVersion
echo $developmentVersion
echo "Let's assign some variables directly from the commit message but this time with variable names!"
releaseVersionVariableName="release"
devVersionVariableName="devRelease"
echo $releaseVersionVariableName
echo $devVersionVariableName
regex1="\[${releaseVersionVariableName}[^\]]*=\K[^\]]*(?=\])"
echo $regex1
releaseVersion=$(echo $commitMessage | grep -Po $regex1)
echo $releaseVersion
echo $commitMessage | grep -Po "\[{$devVersionVariableName}[^\]]*=\K[^\]]*(?=\])"
. ./travis/common_function.sh
extractVariable "release" "$commitMessage"

View File

@@ -0,0 +1,11 @@
# Will echo value of the provided variablePrefix from the commit message Example useage and output:
# $ extractVariable "release" "[skipTests][release=6.3.0]"
# $ 6.3.0
extractVariable()
{
local variablePrefix=$1 commitMessage=$2
regex="\[$variablePrefix[^\]]*=\K[^\]]*(?=\])"
echo $commitMessage | grep -Po $regex
}
echo "common_function.sh loaded"

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
. ./scripts/travis/common_functions.sh
releaseVersion=$(extractVariable "release" "$TRAVIS_COMMIT_MESSAGE")
comReleaseVersion==$(extractVariable "comRelease" "$TRAVIS_COMMIT_MESSAGE")
if [ -z ${comReleaseVersion} ] || [ -z ${releaseVersion} ];
then
echo "Please provide a communityReleaseVersion and releaseVersion via commit message in the format [comRelease=<acs-version>-<additional-info>] and [release=<acs-version>-<additional-info>] (eg. [release=6.3.0-EA][comRelease=202001])"
exit -1
fi
build_number=$1
branch_name=$2
build_stage=release
SOURCE=s3://alfresco-artefacts-staging/alfresco-content-services-community/$build_stage/$branch_name/$build_number
DESTINATION=s3://eu.dl.alfresco.com/release/community/$comReleaseVersion-build-$build_number
aws s3 cp --acl private $SOURCE/alfresco.war $DESTINATION/alfresco.war
aws s3 cp --acl private $SOURCE/alfresco-content-services-community-distribution-$releaseVersion.zip $DESTINATION/alfresco-content-services-community-distribution-$releaseVersion.zip

View File

@@ -0,0 +1,43 @@
#!/usr/bin/env bash
. ./scripts/travis/common_functions.sh
releaseVersion=$(extractVariable "release" "$TRAVIS_COMMIT_MESSAGE")
developmentVersion=$(extractVariable "devRelease" "$TRAVIS_COMMIT_MESSAGE")
scm_path=$(mvn help:evaluate -Dexpression=project.scm.url -q -DforceStdout)
# Use full history for release
git checkout -B "${TRAVIS_BRANCH}"
# Add email to link commits to user
git config user.email "${GIT_EMAIL}"
if [ -z ${releaseVersion} ] || [ -z ${developmentVersion} ];
then echo "Please provide a Release and Development verison via commit message in the format [release=<acs-version>-<additional-info>] and [devRelease=<acs-version>-<additional-info>] (eg. [release=6.3.0-EA][devRelease=6.3.0-SNAPSHOT])"
exit -1
exit -1
# TODO: Set up continuous release. As of REPO-4735 the following is not required if release stage is manual
# mvn --batch-mode \
# -Dusername="${GIT_USERNAME}" \
# -Dpassword="${GIT_PASSWORD}" \
# -Dbuild-number=${TRAVIS_BUILD_NUMBER} \
# -Dbuild-name="${TRAVIS_BUILD_STAGE_NAME}" \
# -Dscm-path=${scm_path} \
# -DscmCommentPrefix="[maven-release-plugin][skip ci]" \
# -DskipTests \
# "-Darguments=-DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER} '-Dbuild-name=${TRAVIS_BUILD_STAGE_NAME}' -Dscm-path=${scm_path} " \
# -Prelease \
# release:prepare release:perform
else
mvn --batch-mode \
-Dusername="${GIT_USERNAME}" \
-Dpassword="${GIT_PASSWORD}" \
-DreleaseVersion=${releaseVersion} \
-DdevelopmentVersion=${developmentVersion} \
-Dbuild-number=${TRAVIS_BUILD_NUMBER} \
-Dbuild-name="${TRAVIS_BUILD_STAGE_NAME}" \
-Dscm-path=${scm_path} \
-DscmCommentPrefix="[maven-release-plugin][skip ci]" \
-DskipTests \
"-Darguments=-DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER} '-Dbuild-name=${TRAVIS_BUILD_STAGE_NAME}' -Dscm-path=${scm_path} " \
release:clean release:prepare release:perform \
-Prelease
fi

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
. ./scripts/travis/common_functions.sh
releaseVersion=$(extractVariable "release" "$TRAVIS_COMMIT_MESSAGE")
if [ -z ${releaseVersion} ];
then
echo "Please provide a releaseVersion via commit message in the format [release=<acs-version>-<additional-info>] (eg. [release=6.3.0-EA])"
exit -1
fi
DEPLOYMENT_DIR=deploy_dir
mkdir $DEPLOYMENT_DIR -p
cp war/target/alfresco.war ${DEPLOYMENT_DIR}
cp distribution/target/alfresco-content-services-community-distribution-$releaseVersion.zip ${DEPLOYMENT_DIR}

View File

@@ -0,0 +1,41 @@
#!/usr/bin/env bash
. ./scripts/travis/common_functions.sh
releaseVersion=$(extractVariable "release" "$TRAVIS_COMMIT_MESSAGE")
if [ -v ${releaseVersion} ]||[ -z ${releaseVersion} ]; then
# if we don't have a user added release version, get the verison from the pom
# TODO: Set up continuous release. As of REPO-4735 the following is not required if release stage is manual
# pom_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
# if echo $pom_version | grep -q ".*-SNAPSHOT"; then
# releaseVersion=${pom_version%-*} # remove everything after the last '-'
# else
# releaseVersion=$pom_version
# fi
echo "Please provide a releaseVersion via commit message in the format [release=<acs-version>-<additional-info>] (eg. [release=6.3.0-EA])"
exit -1
fi
# get the image name from the pom file
alfresco_docker_image=$(mvn help:evaluate -f ./docker-alfresco/pom.xml -Dexpression=image.name -q -DforceStdout)
docker_image_full_name="$alfresco_docker_image:$releaseVersion"
function docker_image_exists() {
local image_full_name="$1"; shift
local wait_time="${1:-5}"
local search_term='Pulling|is up to date|not found'
echo "Looking to see if $image_full_name already exists..."
local result="$((timeout --preserve-status "$wait_time" docker 2>&1 pull "$image_full_name" &) | grep -v 'Pulling repository' | egrep -o "$search_term")"
test "$result" || { echo "Timed out too soon. Try using a wait_time greater than $wait_time..."; return 1 ;}
if echo $result | grep -vq 'not found'; then
true
else
false
fi
}
if docker_image_exists $docker_image_full_name; then
echo "Tag $releaseVersion already pushed, release process will interrupt."
exit -1
else
echo "The $releaseVersion tag was not found"
fi

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -ev
if [ -z ${COMM_RELEASE_VERSION} ] || [ -z ${RELEASE_VERSION} ];
then
echo "Please provide a COMM_RELEASE_VERSION and RELEASE_VERSION in the format <acs-version>-<additional-info> (6.3.0-EA or 6.3.0-SNAPSHOT)"
exit -1
fi
build_number=$1
branch_name=$2
build_stage=release
SOURCE=s3://alfresco-artefacts-staging/alfresco-content-services-community/$build_stage/$branch_name/$build_number
DESTINATION=s3://eu.dl.alfresco.com/release/community/$COMM_RELEASE_VERSION-build-$build_number
aws s3 cp --acl private $SOURCE/alfresco.war $DESTINATION/alfresco.war
aws s3 cp --acl private $SOURCE/alfresco-content-services-community-distribution-$RELEASE_VERSION.zip $DESTINATION/alfresco-content-services-community-distribution-$RELEASE_VERSION.zip

View File

@@ -0,0 +1,42 @@
#!/usr/bin/env bash
set -e
releaseVersion=$1
developmentVersion=$2
scm_path=$(mvn help:evaluate -Dexpression=project.scm.url -q -DforceStdout)
# Use full history for release
git checkout -B "${TRAVIS_BRANCH}"
# Add email to link commits to user
git config user.email "${GIT_EMAIL}"
if [ -z ${releaseVersion} ] || [ -z ${developmentVersion} ];
then echo "Please provide a Release and Development verison in the format <acs-version>-<additional-info> (6.3.0-EA or 6.3.0-SNAPSHOT)"
exit -1
# TODO: Set up continuous release. As of REPO-4735 the following is not required if release stage is manual
# mvn --batch-mode \
# -Dusername="${GIT_USERNAME}" \
# -Dpassword="${GIT_PASSWORD}" \
# -Dbuild-number=${TRAVIS_BUILD_NUMBER} \
# -Dbuild-name="${TRAVIS_BUILD_STAGE_NAME}" \
# -Dscm-path=${scm_path} \
# -DscmCommentPrefix="[maven-release-plugin][skip ci]" \
# -DskipTests \
# "-Darguments=-DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER} '-Dbuild-name=${TRAVIS_BUILD_STAGE_NAME}' -Dscm-path=${scm_path} " \
# -Prelease \
# release:prepare release:perform
else
mvn --batch-mode \
-Dusername="${GIT_USERNAME}" \
-Dpassword="${GIT_PASSWORD}" \
-DreleaseVersion=${releaseVersion} \
-DdevelopmentVersion=${developmentVersion} \
-Dbuild-number=${TRAVIS_BUILD_NUMBER} \
-Dbuild-name="${TRAVIS_BUILD_STAGE_NAME}" \
-Dscm-path=${scm_path} \
-DscmCommentPrefix="[maven-release-plugin][skip ci]" \
-DskipTests \
"-Darguments=-DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER} '-Dbuild-name=${TRAVIS_BUILD_STAGE_NAME}' -Dscm-path=${scm_path} " \
release:clean release:prepare release:perform \
-Prelease
fi

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
if [ -z ${RELEASE_VERSION} ];
then
echo "Please provide a RELEASE_VERSION in the format <acs-version>-<additional-info> (6.3.0-EA or 6.3.0-SNAPSHOT)"
exit -1
fi
DEPLOYMENT_DIR=deploy_dir
mkdir $DEPLOYMENT_DIR -p
cp war/target/alfresco.war ${DEPLOYMENT_DIR}
cp distribution/target/alfresco-content-services-community-distribution-$RELEASE_VERSION.zip ${DEPLOYMENT_DIR}

View File

@@ -0,0 +1,39 @@
#!/usr/bin/env bash
set -e
if [ -v ${RELEASE_VERSION} ]||[ -z ${RELEASE_VERSION} ]; then
# if we don't have a user added release version, get the verison from the pom
# TODO: Set up continuous release. As of REPO-4735 the following is not required if release stage is manual
# pom_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
# if echo $pom_version | grep -q ".*-SNAPSHOT"; then
# RELEASE_VERSION=${pom_version%-*} # remove everything after the last '-'
# else
# RELEASE_VERSION=$pom_version
# fi
echo "Please provide a RELEASE_VERSION in the format <acs-version>-<additional-info> (6.3.0-EA or 6.3.0-SNAPSHOT)"
exit -1
fi
# get the image name from the pom file
alfresco_docker_image=$(mvn help:evaluate -f ./docker-alfresco/pom.xml -Dexpression=image.name -q -DforceStdout)
docker_image_full_name="$alfresco_docker_image:$RELEASE_VERSION"
function docker_image_exists() {
local image_full_name="$1"; shift
local wait_time="${1:-5}"
local search_term='Pulling|is up to date|not found'
echo "Looking to see if $image_full_name already exists..."
local result="$((timeout --preserve-status "$wait_time" docker 2>&1 pull "$image_full_name" &) | grep -v 'Pulling repository' | egrep -o "$search_term")"
test "$result" || { echo "Timed out too soon. Try using a wait_time greater than $wait_time..."; return 1 ;}
if echo $result | grep -vq 'not found'; then
true
else
false
fi
}
if docker_image_exists $docker_image_full_name; then
echo "Tag $RELEASE_VERSION already pushed, release process will interrupt."
exit -1
else
echo "The $RELEASE_VERSION tag was not found"
fi

View File

@@ -1,4 +1,4 @@
TRANSFORMERS_TAG=2.1.1
SOLR6_TAG=1.4.0
SOLR6_TAG=1.4.1
POSTGRES_TAG=11.4
ACTIVEMQ_TAG=5.15.8

View File

@@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-3-1</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -95,12 +95,6 @@
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<!-- required by GDocs-->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>