Giter Club home page Giter Club logo

infracost-jenkins's People

Contributors

alikhajeh1 avatar aliscott avatar hugorut avatar sinabakh avatar tim775 avatar vdmgolub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

infracost-jenkins's Issues

Infracost comment commit

I am trying to make a pipeline to apply terraform script with jenkins
I did the job of checking and commenting on a pull request

But I would like to double check when a commit goes to master or when a PR is approved to master
But is not working

stage('infracost') {
agent {
docker {
image 'infracost/infracost:ci-0.9'
args "--user=root --entrypoint=''"
}
}
environment {
INFRACOST_API_KEY = credentials('jenkins-infracost-api-key')
GITHUB_TOKEN = credentials('git_token')
GITHUB_COMMIT = "${GIT_COMMIT}"
GITHUB_REPO = "mpcabral/test-infracost"
}
steps {
sh 'infracost breakdown --path plan.json --format json --out-file infracost.json'
sh 'infracost comment github --policy-path infracost-policy.rego --path infracost.json --repo $GITHUB_REPO --commit $GITHUB_COMMIT --github-token $GITHUB_TOKEN'
}
}

I'm getting the following error:
Type mismatch on variable $commitSha and argument oid (String! / GitObjectID)

No infracost cloud with bitbucket/jenkins

To reproduce:
1.bitbucket (cloud).
2. Jenkins (server)
3. Follow infracost guides.

PR comments added to bitbucket
infracost comment phase - does not update infracost cloud with PR details (while all 5 ENV vars set per the guide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.