Giter VIP home page Giter VIP logo

sn-cicd-example-v3's Issues

Issue while deploying the updateset

Getting the below error message while deploying(after approving the pull request).

{"mrkdwn":true,"link_names":true,"parse":"none","attachments":[{"mrkdwn_in":["pretext","text","title","fields","fallback"],"fallback":"StatusCodeError!\n405 - {"error":{"message":"Method not Supported","detail":"GET method not supported for API"},"status":"failure"}. <Updatesetname- 1.0.0>","color":"#990016","text":"StatusCodeError!\n405 - {"error":{"message":"Method not Supported","detail":"GET method not supported for API"},"status":"failure"}. <Updatesetname- 1.0.0>","author_icon":null}],"username":"","icon_url":"","icon_emoji":""}

I will send the complete log and .env file by email.

Build not working.

I have tried to get this working on instances running New York. The mid servers were setup using Docker and the application is running. Nothing happens when i click BUILD THIS APPLICATION from ServiceNow.

I have attached my .env file here.
neji_example.env.txt

project-template gulpfile.js need support git disabled updateset

In sn-cicd v3, allows disable git via CICD_GIT_ENABLED=false,
but only one gulpfile template sn-cicd/lib/project-templates/gulpfile.js for build, so it will fail the job.

Better provide two templates:

  • gulpfile.git.js
  • gulpfile.nogit.js

Need enhancement while copy the template file to repo, if git disabled then use an other gulpfile.

Thanks

RestClient post payload to the /run rest api, server console got error 'CICD.prototype.addStep Error: addStep, no run instance found. State: run.run : failed'

Post a json payload to https://localhost:8443/run, client got 200 ok, but server console log show a lot of error

curl -X POST -k -H 'Content-Type: application/json; charset=utf-8' -H 'x-access-token: 1Tnt2bx9mrVjxMQDfjhvRAYxiL9ldQN5ITR6DtM8T6Pq8YLbEjwAd60vmUiTIvSE' -i https://localhost:8443/run --data '{
    "requestor": {
        "userName": "BC",
        "fullName": "BC",
        "email": "[email protected]"
    },
    "updateSet": "87294fd0dbb12300f526d426ca961912",
    "application": {
        "id": "51s3foc6of5skpulzc6bidvn5c89xrp4",
        "name": "SN Application Name"
    },
    "git": {
        "repository": "sn-example",
        "remoteUrl": "https://github.com/gitlabbin/sn-example.git",
        "url": "https://github.com/gitlabbin/sn-example.git",
        "enabled": true,
        "pullRequestEnabled": true
    },
    "atf": {
        "updateSetOnly": false
    },
    "source": {
        "name": "https://dev59944.service-now.com/",
        "accessToken": "eXwdKi7z6OEkRYh9ljJNY7271S9jnJxyyyk0VmMQJFJejbG601A3jjMFQZDLcoruelEtxXffSSPZX7PDIc43wQ"
    },
    "master": {
        "name": null,
        "accessToken": null
    }
}'

Server console failed: "Requested URI does not represent any resource: /swre/cicd/updateset/87294fd0dbb12300f526d426ca961912",

[09:29:53.140] [ERROR] [19324]  CICD.prototype.addStep Error: addStep, no run instance found. State: run.run : failed
    at Promise.try (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/sn-cicd/lib/cicd.js:427:23)
    at tryCatcher (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/util.js:16:23)
    at Function.Promise.attempt.Promise.try (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/method.js:39:29)
    at CICD.addStep (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/sn-cicd/lib/cicd.js:422:27)
    at step (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/sn-cicd/lib/modules/run.js:22:21)
    at Promise.try.then (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/sn-cicd/lib/modules/run.js:56:20)
    at tryCatcher (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromiseCtx (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/promise.js:606:10)
    at Async._drainQueue (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/async.js:138:12)
    at Async._drainQueues (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/brianchen/my-wk/sn-cicd-example-v3/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (timers.js:632:19)
[09:29:53.174] [ERROR] [19324]  { name: 'StatusCodeError',
  statusCode: 400,
  message:
   '400 - {"error":{"message":"Requested URI does not represent any resource: /swre/cicd/updateset/87294fd0dbb12300f526d426ca961912","detail":null},"status":"failure"}',
  error:
   { error:
      { message:
         'Requested URI does not represent any resource: /swre/cicd/updateset/87294fd0dbb12300f526d426ca961912',
        detail: null },
     status: 'failure' }

issue related to slack

[19:00:21.580] [LOG] [21292] [/worker#p3KpAwKZO0cgPVPBAAAB] build-project : cleaning up project
[19:00:21.599] [LOG] [21292] deleting C:\temp\repos\accdab5f-bbfb-419a-869f-6c5b1ca9f72c\node_modules
[19:00:22.008] [LOG] [5504] Slack not active. Message: {"mrkdwn":true,"link_names":true,"parse":"none","attachments":[{"mrkdwn_in":["pretext","text","title","fields","fallback"],"fallback":"Build for https://localhost:8443/goto/run/CkZ26mocOh5OHKsj|CICDIntegrationB3 did not pass!","color":"#990016","text":"Build for https://localhost:8443/goto/run/CkZ26mocOh5OHKsj|CICDIntegrationB3 did not pass!","author_icon":null}],"username":"","icon_url":"","icon_emoji":""}
[19:00:22.053] [LOG] [27024] /worker#OI3n4tjh-nBXBHEzAAAC is done (/worker/done) with job: efea6fcf-5203-4077-b2b0-80cc18d22de3 Type: exe
[19:00:35.662] [LOG] [27024] /worker#p3KpAwKZO0cgPVPBAAAB is done (/worker/done) with job: ef7eaeb4-7c3b-4879-9fb9-7d99f7cfff1a Type: exe
[19:00:35.691] [LOG] [27024] /worker#PVnGN9iMei_Fmi0CAAAA is done (/worker/done) with job: a6b3bf47-370c-4e8c-baba-7c652316a155 Type: undefined

Hi boris,
I am facing this issue related to slack not active, Could you please suggest how to resolve this issue
Thanks
Tanoy

Getting error while pushing data to GIT

'Command failed: git add "C:\Users\SHUVAR1\AppData\Local\Temp\git-root\5ab205bc-8f74-4cd1-800c-a3aeaa96367b\us\global\sys_update_set_76658483dbd37300e76e771c8c9619c3.xml"\nfatal: C:\Users\SHUVAR1\AppData\Local\Temp\git-root\5ab205bc-8f74-4cd1-800c-a3aeaa96367b\us\global\sys_update_set_76658483dbd37300e76e771c8c9619c3.xml: 'C:\Users\SHUVAR~1\AppData\Local\Temp\git-root\5ab205bc-8f74-4cd1-800c-a3aeaa96367b\us\global\sys_update_set_76658483dbd37300e76e771c8c9619c3.xml' is outside repository\n'

Getting above error when trying to push the data from update set to GIT through CICD.

Pull request not triggering

Thanks for creating the server and making it opensource :)
I am Trying to build the application, but the pull request is not triggering.
The logs says "master is not enabled, Skip export." Could you please point out what could be the reason for this.
Thanks!!
tempsnip

Getting issue while running ATF through CICD pipeline

Facing below issue while running the ATF test case through CICD pipeline-

TypeError: describe is not a function
at Object. (C:\temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\test\atf-wrapper.js:62:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\mocha\lib\mocha.js:334:36
at Array.forEach ()
at Mocha.loadFiles (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\mocha\lib\mocha.js:331:14)
at Mocha.run (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\mocha\lib\mocha.js:811:10)
at Object.exports.singleRun (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\mocha\lib\cli\run-helpers.js:108:16)
at exports.runMocha (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\mocha\lib\cli\run-helpers.js:142:13)
at Object.exports.handler.argv [as handler] (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\mocha\lib\cli\run.js:292:3)
at Object.runCommand (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\yargs\lib\command.js:242:26)
at Object.parseArgs [as _parseArgs] (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\yargs\yargs.js:1087:28)
at Object.parse (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\yargs\yargs.js:566:25)
at Object.exports.main (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\mocha\lib\cli\cli.js:68:6)
at Object. (C:\Temp\repos\ad8a6168-156f-46b6-9cb2-58c11c145e90\node_modules\mocha\bin\mocha:154:29)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

When I run example background script exactly as explained, I get following error

request ended in error - StatusCode 0, ResponseMessage: The request failed: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure, Endpoint: https://:4443/run, RequestBody: [object Object]: no thrown error

Not sure whats going on wrong!

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.