-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: mirrored actions file to Jenkinsfile
- Loading branch information
1 parent
f1267cb
commit 70577b0
Showing
1 changed file
with
31 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
pipeline { | ||
agent any | ||
agent { | ||
docker { | ||
image 'barichello/godot-ci:4.2.1' | ||
|
||
} } | ||
environment { | ||
GODOT_VERSION = '4.2.1' | ||
EXPORT_NAME = 'CosmicKube' | ||
PROJECT_PATH = 'game-source' | ||
} | ||
|
||
stages { | ||
stage('Hello world') { | ||
stage('Setup') { | ||
steps { | ||
sh 'echo pee pee' | ||
sh '''mkdir -v -p ~/.local/share/godot/export_templates/ | ||
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable | ||
''' | ||
} | ||
} | ||
stage('Web Build') { | ||
steps { | ||
sh '''mkdir -v -p build/web | ||
cd $PROJECT_PATH | ||
godot --headless --verbose --export-release "Web" ../build/web/index.html 2>&1 | tee output.txt | ||
echo Reading build logs... | ||
if search="$(cat output.txt | grep 'ERROR: Project export')" | ||
then | ||
echo "Build failed!" | ||
exit 1 | ||
else | ||
echo "Build succeeded!" | ||
exit 0 | ||
fi ;''' | ||
} | ||
} | ||
|
||
// stage('Push image') { | ||
// steps { | ||
// sh 'docker push localhost:5000/ttt' | ||
// } | ||
// } | ||
// | ||
// stage('Package') { | ||
// steps { | ||
// sh 'helm install ttt ttt | true' | ||
// sh 'helm upgrade ttt ttt' | ||
// } | ||
// } | ||
} | ||
} | ||
} |