Raymond Toy pushed to branch issue-478-run-analyzer-link-chcker-on-schedule at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -287,9 +287,6 @@ linux:static-analyzer:
    287 287
           
    
    288 288
       tags:
    
    289 289
         - linux
    
    290
    -  # Allows the pipeline to proceed and show a "passed with warnings" 
    
    291
    -  # status (orange) instead of "failed" (red) if this job exits with an error.
    
    292
    -  allow_failure: true
    
    293 290
       artifacts:
    
    294 291
         when: always
    
    295 292
         paths:
    
    ... ... @@ -306,7 +303,9 @@ linux:static-analyzer:
    306 303
           when: on_success
    
    307 304
         # 3. Otherwise, the job remains a manual button in the pipeline.
    
    308 305
         - when: manual
    
    309
    -      allow_failure: true
    
    306
    +  # Allows the pipeline to proceed and show a "passed with warnings" 
    
    307
    +  # status (orange) instead of "failed" (red) if this job exits with an error.
    
    308
    +  allow_failure: true
    
    310 309
       script:
    
    311 310
         # Analysis can generate huge amounts of output.  For now just save
    
    312 311
         # the results to the log file instead of also having it go to the
    
    ... ... @@ -366,7 +365,15 @@ markdown-link-check:
    366 365
       # Only the linux runner has markdown-link-check installed
    
    367 366
       tags:
    
    368 367
         - linux
    
    369
    -  when: manual
    
    368
    +  rules:
    
    369
    +    # 1. If the pipeline is a scheduled run, run this job automatically
    
    370
    +    - if: $CI_PIPELINE_SOURCE == "schedule"
    
    371
    +      when: on_success
    
    372
    +    # 2. If the variable is set (manually via UI/API), run automatically.
    
    373
    +    - if: $RUN_ANALYSIS
    
    374
    +      when: on_success
    
    375
    +    # 3. Otherwise, the job remains a manual button in the pipeline.
    
    376
    +    - when: manual
    
    370 377
       # It's ok if this fails; we don't want to declare the entire
    
    371 378
       # pipeline as having failed.
    
    372 379
       allow_failure: true