Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ci-cd-discovery
templates
hello-world-template
Commits
e7f8ac69
Commit
e7f8ac69
authored
Dec 01, 2020
by
Philippe Charrière
Browse files
update
parent
a58aab8f
Pipeline
#7685
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e7f8ac69
...
...
@@ -76,14 +76,10 @@ hello_python:
stage
:
polyglot
variables
:
MESSAGE
:
"
Hello
from
Python"
script
:
|
export MESSAGE=$MESSAGE; python -c '
import os
print(os.environ.get('MESSAGE'))
print("Hello, World! with Python")
'
SOURCE_CODE
:
|
import os
message = os.environ.get('MESSAGE')
print(message)
script
:
-
python -c "$SOURCE_CODE"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment