Message files with transifex translations are not included in build images on backend services

Description

While looking into lack of backend translations we've figured out, that there are no message files from transifex in build images of backend services in latest 3.5 release. This is how jar looks in current referencedata image:

1 2 $ unzip -l service.jar | grep messages 18970 2018-12-12 18:53 BOOT-INF/classes/messages_en.properties

and this is how it looks in 11.0.0 version:

1 2 3 4 5 $ unzip -l service3.jar | grep messages 7974 2017-03-01 23:29 BOOT-INF/classes/messages_pt.properties 7960 2017-03-01 23:29 BOOT-INF/classes/messages_en.properties 7976 2017-03-01 23:29 BOOT-INF/classes/messages_fr.properties 7974 2017-03-01 23:29 BOOT-INF/classes/messages_es.properties

We suspect that it might be connected with this log from build:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 _ _| __ __ _ _ __ ___(_)/ _| _____ __ | || '__/ _` | '_ \/ __| | |_ / _ \ \/ / | || | | (_| | | | \__ \ | _| __/> < |_||_| \__,_|_| |_|___/_|_| \___/_/\_\ Welcome to the Transifex Client! Please follow the instructions to initialize your project. tx INFO: Creating .tx folder... tx INFO: Creating config file... tx INFO: Running tx config command for you... tx INFO: No credentials file was found at /root/.transifexrc. tx INFO: Created /root/.transifexrc tx ERROR: EOF when reading a line [?] Enter your api token: tx INFO: Updating source for resource openlmis-referencedata.messages ( en -> src/main/resources/messages_en.properties ). tx INFO: Setting source file for resource openlmis-referencedata.messages ( en -> src/main/resources/messages_en.properties ). tx INFO: Updating file expression for resource openlmis-referencedata.messages ( src/main/resources/messages_<lang>.properties ). tx INFO: Pushing resource openlmis-referencedata.messages tx ERROR: EOF when reading a line [?] Enter your api token: tx ERROR: EOF when reading a line [?] Enter your api token: Welcome to Gradle 4.10.2! Here are the highlights of this release: - Incremental Java compilation by default - Periodic Gradle caches cleanup - Gradle Kotlin DSL 1.0-RC6 - Nested included builds - SNAPSHOT plugin versions in the `plugins {}` block For more details see https://docs.gradle.org/4.10.2/release-notes.html

AC:

  • In CI, a failure of the Transifex client should stop the build.

Environment

None

Status

Assignee

Mateusz Kwiatkowski

Reporter

Mateusz Kwiatkowski

Labels

None

Story Points

2

Time tracking

30m

Sprint

None

Fix versions

Priority

Blocker
Configure