Skip to content
  • Matthew Pickering's avatar
    7cb7172e
    ci: Fix variable inheritence for ghcup-metadata testing job · 7cb7172e
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    Downstream in ghcup-ci we use the CONFIGURE_ARGS variable to determine
    how to setup all the different jobs.
    
    On the downstream trigger this was being inherited from the default
    setting in .gitlab.yml file.
    
    Therefore this led to job failures as the necessary CONFIGURE_ARGS were
    not being passed to the configure script when installing the bindist.
    
    See docs:
    
    * https://docs.gitlab.com/ee/ci/yaml/#inherit
    * https://docs.gitlab.com/ee/ci/yaml/#triggerforward
    
    1. inherit:variables:fals
      - This stops the global variables being inherited into the job and
        hence forwarded onto the downstream job.
    
    2. trigger:forward:*
      - yaml_variables: true (default) pass yaml variables to downstream,
        this is important to pass the upstream pipeline id to downstream.
      - pipeline_variables: false (default) but don't pass pipeline
        variables (normal environment variables).
    
    Fixes #25294
    7cb7172e
    ci: Fix variable inheritence for ghcup-metadata testing job
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    Downstream in ghcup-ci we use the CONFIGURE_ARGS variable to determine
    how to setup all the different jobs.
    
    On the downstream trigger this was being inherited from the default
    setting in .gitlab.yml file.
    
    Therefore this led to job failures as the necessary CONFIGURE_ARGS were
    not being passed to the configure script when installing the bindist.
    
    See docs:
    
    * https://docs.gitlab.com/ee/ci/yaml/#inherit
    * https://docs.gitlab.com/ee/ci/yaml/#triggerforward
    
    1. inherit:variables:fals
      - This stops the global variables being inherited into the job and
        hence forwarded onto the downstream job.
    
    2. trigger:forward:*
      - yaml_variables: true (default) pass yaml variables to downstream,
        this is important to pass the upstream pipeline id to downstream.
      - pipeline_variables: false (default) but don't pass pipeline
        variables (normal environment variables).
    
    Fixes #25294
Loading