我有一个需要一些敏感数据的项目。我已按照https://docs.travis-ci.com/user/encrypting-files/中指定的步骤进行操作。但是,某些构建会失败,而其他构建会很好。 构建成功后,我会看到以下日志:
Setting environment variables from repository settings
$ export encrypted_2c77c0ced414c_key=[secure]
$ export encrypted_2c77c0ced414c_iv=[secure]
$ export encrypted_c066d37aa1a1_key=[secure]
$ export encrypted_c066d37aa1a1_iv=[secure]
当构建失败时,我看不到这些环境变量。我收到此错误:
The command "openssl aes-256-cbc -K $encrypted_2c77c0ced414c_key -iv $encrypted_c066d37aa1a1_key -in seeds.json.enc -out tests/data/seeds.json -d" failed and exited with 1 during .