Commit a19c047b authored by canterburym's avatar canterburym
Browse files

Adding shell env to merge test

parent 00d67dbf
Pipeline #3175 passed with stages
in 1 minute and 20 seconds
FROM python:3.7
RUN pip3 install -q asn1tools lxml xmlschema
\ No newline at end of file
# docker build -t mcanterb/forge-cicd
# docker push mcanterb/forge-cicd
FROM python:3.8
RUN apt update && apt-get install -y git
RUN pip3 install -q asn1tools lxml xmlschema requests gitpython
\ No newline at end of file
......@@ -4,7 +4,7 @@ import requests
import json
import subprocess
print ("Hello world v1.1")
print ("Hello world v1.2")
crCommitBranch = os.environ.get("CI_COMMIT_REF_NAME", "cr/TS33128/0163")
apiUrl = os.environ.get("CI_API_V4_URL", "")
......@@ -17,7 +17,7 @@ def gapi (query):
def do (commandline):
print (" Attempting: " + commandline)
completedProc =, capture_output=True)
completedProc =, capture_output=True, shell=True)
print (" STDOUT > " + ("empty" if completedProc.stdout is None else completedProc.stdout.decode('utf-8')))
print (" STDERR > " + ("empty" if completedProc.stderr is None else completedProc.stderr.decode('utf-8')))
print (f" Completed with code {completedProc.returncode}")
Markdown is supported
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