Commit a27f610f authored by Bertrand Goareguer's avatar Bertrand Goareguer Committed by Pierre Smeyers
Browse files

fix: call the import_into_defectdojo function from the job instead of the script

parent 8fb107f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -464,7 +464,6 @@ variables:
    fi
  }

  import_into_defectdojo

  # ENDSCRIPT

@@ -484,6 +483,7 @@ defectdojo:
    - cd ${DEFECTDOJO_DIR}
  script:
    - *defectdojo-scripts
    - import_into_defectdojo
  rules:
    # on production branch
    - if: '$CI_COMMIT_REF_NAME =~ $PROD_REF || $DEFECTDOJO_NOPROD_ENABLED == "true"'