excellarateinc / voyage-api-dotnet

Enterprise grade C# .NET Web Services API implementing industry standard best practices
Apache License 2.0
16 stars 14 forks source link

We need to add File.txt root API project for status endpoint to read off #150

Closed maniphanh closed 6 years ago

maniphanh commented 7 years ago

when calling app status endpoint app will look for File.txt and ready buildNumber property and return to caller. We need to add File.txt with the content: { "build": { "buildNumber": "1.0.0"}}

raymer commented 7 years ago

@maniphanh It would be cool to have CI actually drop this file with the actual build info.

maniphanh commented 7 years ago

@raymer I think this has always been the plan since we are reading off txt file :) that is only one reason I can think of but no one has added this step to our build config yet :)

rajeshpandalss commented 7 years ago

@nu @raymer Let me know if this is what you guys have been planning to do.

To create a file from Jenkins Job, You need to add a build step call "Execute Shell"

!/bin/bash

echo $PARAMETER_NAME_HERE > file.txt

raymer commented 6 years ago

Done and in code review