Replies: 2 comments
-
Different remote based on repo informationremote = Gitea()
if jci.repo.branch == 'trunk':
remote = Email()
if jci.repo.branch.startswith('release-v'):
remote = Email(to='release.mailing.list@gmail.com')
with jci.Pipeline(remote=remote) as p:
p.job(...) Todo
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Different remote based on job / pipeline propertiesremote_map = dict(
pull_request=Gitea(),
author=Email(),
regression_log=Email(),
)
with jci.Pipeline(remote=remote_map) as p:
p.use_remotes(author=True, pull_request=False).when(status__in=("failed", "timeout"))
p.use_remotes(pull_request=True, author=False).when(status="success")
# ---
reg = p.job(...) # regression testing
reg.use_remotes("regression_log").when(status=Status.FAILED)
with p.stage("publishing") as st:
st.use_remotes(author=True) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions