Commit b9cc5c4b authored by Benavides Ontiveros's avatar Benavides Ontiveros
Browse files

add manual run ingest

parent c216a60f
Pipeline #12277 canceled with stages
in 3 seconds
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'
when: always # allow manual run from the UI
- when: never # block all automatic runs
stages: stages:
- ingest - ingest
...@@ -11,7 +17,7 @@ ingest: ...@@ -11,7 +17,7 @@ ingest:
- reddit - reddit
rules: rules:
- when: manual - when: manual # job requires clicking the play button
before_script: before_script:
- apt-get update && apt-get install -y gettext jq - apt-get update && apt-get install -y gettext jq
......
...@@ -115,12 +115,18 @@ ingest: ...@@ -115,12 +115,18 @@ ingest:
- reddit - reddit
needs: needs:
- job: generate - job: generate
before_script: before_script:
- apt-get update && apt-get install -y gettext jq - apt-get update && apt-get install -y gettext jq
- cp tools/filesystem-plugin-2.1.0.jar plugin.jar - cp tools/filesystem-plugin-2.1.0.jar plugin.jar
- envsubst < tools/user-config.json > user-config.json - envsubst < tools/user-config.json > user-config.json
- echo "--- READING FROM VM FOLDER ---"
- echo "--- Listing files in /reddit_output ---"
- ls -Ra /reddit_output/ || echo "No files found!" - ls -Ra /reddit_output/ || echo "No files found!"
- echo "--- Listing files in /reddit_output/.meta ---"
- ls -Ra /reddit_output/.meta || echo ".meta folder not found!"
script: script:
- echo "Running ingestion..." - echo "Running ingestion..."
- java -jar plugin.jar "/reddit_output" - java -jar plugin.jar "/reddit_output"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment