Skip to content

ShreyasSubhedar/sample-python-cfd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curl -X GET 'https://api.newrelic.com/v2/applications.json' \
     -H "Api-Key:$API_KEY" -i \
     -d "filter[name]=$NAME"

def url = "https://api.newrelic.com/v2/applications/${app_id}/deployment.json"
def apiKey = 'adfadalkdjnadajkhdilalds'
def data = [
    'description' : "${desccption}",
    'user' : "${env.GIT_COMMITTER_NAME}",
    'timestamp': "${timestamp}",
    'revision' : "${env.BUILD_ID}",
    'changelog': "${env.JOB_NAME}"
]

def deploy = [
    'deployment': data
]

def dataStr = writeJSON returnText: true, json: deploy

httpRequest contentType: 'APPLICATION_JSON',
    customHeaders: [[maskValue: true, name: 'Api-Key', value: apiKey]],
    httpMode: 'POST', 
    requestBody: dataStr,
    responseHandle: 'NONE',
    url: url,
    wrapAsMultipart: false

About

Sample flask app to demonstrate a simple python circleci configuration

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 99.3%
  • Other 0.7%