Hi, I’m using https://docs.travis-ci.com/user/triggering-builds API, modifying the config, especially before_install commands.
The build logs confirms it’s running my commands, however the UI under “Config” shows original unmodified commands. This is misleading, and I’m pretty sure this is a regression, I remember it previously showing the effective config resulting from API merging sent config with .travis.yml.
https://travis-ci.org/cben/manageiq-providers-openshift/builds/494503264/config
https://travis-ci.org/cben/manageiq-providers-openshift/jobs/494503265/config
both show:
(which matches original https://github.com/cben/manageiq-providers-openshift/blob/master/.travis.yml)
config I sent to API:
merge_mode: deep_merge
cache: false
before_install:
- 'export INJECT_GEMS=''{}'''
- >-
export
INJECT_GIT_URLS='{"https://github.com/ManageIQ/manageiq":{"git":"https://github.com/kbrock/manageiq","branch":"classification_parent_yml"},"https://github.com/ManageIQ/manageiq.git":{"git":"https://github.com/kbrock/manageiq","branch":"classification_parent_yml"},"git://github.com/ManageIQ/manageiq":{"git":"https://github.com/kbrock/manageiq","branch":"classification_parent_yml"},"git://github.com/ManageIQ/manageiq.git":{"git":"https://github.com/kbrock/manageiq","branch":"classification_parent_yml"},"ssh://git@github.com/ManageIQ/manageiq":{"git":"https://github.com/kbrock/manageiq","branch":"classification_parent_yml"},"ssh://git@github.com/ManageIQ/manageiq.git":{"git":"https://github.com/kbrock/manageiq","branch":"classification_parent_yml"},"git@github.com:ManageIQ/manageiq":{"git":"https://github.com/kbrock/manageiq","branch":"classification_parent_yml"},"git@github.com:ManageIQ/manageiq.git":{"git":"https://github.com/kbrock/manageiq","branch":"classification_parent_yml"}}'
- 'git clone https://github.com/cben/pass-the-fork --branch inject-git'
- 'export PATH="$PWD/pass-the-fork/shims:$PATH"'
- pass-the-fork/injectors/inject-all.sh
- eval "$(pass-the-fork/injectors/original_before_install)"
response from API:
{
"@type": "pending",
"remaining_requests": 8,
"repository": {
"@type": "repository",
"@href": "/repo/13225786",
"@representation": "minimal",
"id": 13225786,
"name": "manageiq-providers-openshift",
"slug": "cben/manageiq-providers-openshift"
},
"request": {
"repository": {
"id": 89673655,
"owner_name": "cben",
"name": "manageiq-providers-openshift"
},
"user": {
"id": 45759
},
"id": 151622135,
"message": "Triggered by upstream build of undefined",
"branch": "master",
"config": {
"merge_mode": "deep_merge",
"cache": false,
"before_install": [
"export INJECT_GEMS='{}'",
"export INJECT_GIT_URLS='{\"https://github.com/ManageIQ/manageiq\":{\"git\":\"https://github.com/kbrock/manageiq\",\"branch\":\"classification_parent_yml\"},\"https://github.com/ManageIQ/manageiq.git\":{\"git\":\"https://github.com/kbrock/manageiq\",\"branch\":\"classification_parent_yml\"},\"git://github.com/ManageIQ/manageiq\":{\"git\":\"https://github.com/kbrock/manageiq\",\"branch\":\"classification_parent_yml\"},\"git://github.com/ManageIQ/manageiq.git\":{\"git\":\"https://github.com/kbrock/manageiq\",\"branch\":\"classification_parent_yml\"},\"ssh://git@github.com/ManageIQ/manageiq\":{\"git\":\"https://github.com/kbrock/manageiq\",\"branch\":\"classification_parent_yml\"},\"ssh://git@github.com/ManageIQ/manageiq.git\":{\"git\":\"https://github.com/kbrock/manageiq\",\"branch\":\"classification_parent_yml\"},\"git@github.com:ManageIQ/manageiq\":{\"git\":\"https://github.com/kbrock/manageiq\",\"branch\":\"classification_parent_yml\"},\"git@github.com:ManageIQ/manageiq.git\":{\"git\":\"https://github.com/kbrock/manageiq\",\"branch\":\"classification_parent_yml\"}}'",
"git clone https://github.com/cben/pass-the-fork --branch inject-git",
"export PATH=\"$PWD/pass-the-fork/shims:$PATH\"",
"pass-the-fork/injectors/inject-all.sh",
"eval \"$(pass-the-fork/injectors/original_before_install)\""
]
}
},
"resource_type": "request"
}
(P.S. if anyone is curious, https://github.com/patch-graph/pass-the-fork is a project I’m working on towards testing dependenant PRs across repos on Travis, using trigger API to inject modified dependencies. Currently only have WIP ruby support. Completely undocumented yet. Off-topic to this thread, ping me on that repo if you’re interested.)