404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.16.139.76: ~ $
**To create a webhook**

The following ``put-webhook`` example creates a webhook for a GitHub version 1 source action. After you create the webhook, you must use the register-webhook-with-third-party command to register it. ::

    aws codepipeline put-webhook \
        --cli-input-json file://webhook_json.json \
        --region "eu-central-1"

Contents of ``webhook_json.json``::

    {
        "webhook": {
            "name": "my-webhook",
            "targetPipeline": "pipeline_name",
            "targetAction": "source_action_name",
            "filters": [
                {
                    "jsonPath": "$.ref",
                    "matchEquals": "refs/heads/{Branch}"
                }
            ],
            "authentication": "GITHUB_HMAC",
            "authenticationConfiguration": {
                "SecretToken": "secret"
            }
        }
    }

Output::

    {
        "webhook": {
            "url": "https://webhooks.domain.com/trigger111111111EXAMPLE11111111111111111",
            "definition": {
                "authenticationConfiguration": {
                    "SecretToken": "secret"
                },
                "name": "my-webhook",
                "authentication": "GITHUB_HMAC",
                "targetPipeline": "pipeline_name",
                "targetAction": "Source",
                "filters": [
                    {
                        "jsonPath": "$.ref",
                        "matchEquals": "refs/heads/{Branch}"
                    }
                ]
            },
            "arn": "arn:aws:codepipeline:eu-central-1:123456789012:webhook:my-webhook"
        },
        "tags": [
            {
                "key": "Project",
                "value": "ProjectA"
            }
        ]
    }

For more information, see `Create a webhook for a GitHub source <https://docs.aws.amazon.com/codepipeline/latest/userguide/appendix-github-oauth.html#pipelines-webhooks-create>`__ in the *AWS CodePipeline User Guide*.

Filemanager

Name Type Size Permission Actions
acknowledge-job.rst File 425 B 0644
create-custom-action-type.rst File 1.5 KB 0644
create-pipeline.rst File 2.07 KB 0644
delete-custom-action-type.rst File 609 B 0644
delete-pipeline.rst File 287 B 0644
delete-webhook.rst File 569 B 0644
deregister-webhook-with-third-party.rst File 564 B 0644
disable-stage-transition.rst File 314 B 0644
enable-stage-transition.rst File 311 B 0644
get-job-details.rst File 2.67 KB 0644
get-pipeline-state.rst File 1.36 KB 0644
get-pipeline.rst File 2.36 KB 0644
list-action-executions.rst File 5.02 KB 0644
list-action-types.rst File 2.31 KB 0644
list-pipeline-executions.rst File 1.22 KB 0644
list-pipelines.rst File 536 B 0644
list-tags-for-resource.rst File 611 B 0644
list-webhooks.rst File 1.32 KB 0644
poll-for-jobs.rst File 3.17 KB 0644
put-webhook.rst File 2 KB 0644
retry-stage-execution.rst File 614 B 0644
start-pipeline-execution.rst File 326 B 0644
stop-pipeline-execution.rst File 786 B 0644
tag-resource.rst File 587 B 0644
untag-resource.rst File 552 B 0644
update-pipeline.rst File 4.09 KB 0644