Git Product home page Git Product logo

Comments (27)

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

Did you already trigger manually the pipeline job?

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

Nope

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

You need to trigger a new pipeline for the first time manually, only after that the pipeline will be triggered automatically.

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

Done That But getting the error - 403 No valid crumb was included in the request...

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

it seems to be a configuration problem. Did you solve the problem?

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

Hi @SAi0401
want you try this code?

properties([
    pipelineTriggers([
        [
            $class: 'BitBucketPPRTrigger',
            triggers : [
                [
                    $class: 'BitBucketPPRPullRequestTriggerFilter',
                    actionFilter: [
                        $class: 'BitBucketPPRPullRequestCreatedActionFilter',
                    ]
                ],
                [
                    $class: 'BitBucketPPRPullRequestTriggerFilter',
                    actionFilter: [
                        $class: 'BitBucketPPRPullRequestUpdatedActionFilter',
                    ]
                ]
            ]
        ]
    ])
])

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

Sumit31 avatar Sumit31 commented on September 13, 2024

Hi Guys I am facing the same issue
my webhook gets triggerd using freestyle job but no response for pipeline job
can anyone suggest ?

my pipeline looks like :
pipeline {

            triggers {

bitBucketTrigger([[$class: 'BitBucketPPRRepositoryTriggerFilter', actionFilter: [$class: 'BitBucketPPRRepositoryPushActionFilter', allowedBranches: 'master', triggerAlsoIfTagPush: true]]])
}

    agent {
        node {
            label 'build-slave1'
        }
    }

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

Sumit31 avatar Sumit31 commented on September 13, 2024

Hi Sai ,
Thanks for the reply , I tried this But no luck :(

#!groovy
properties([
pipelineTriggers([
bitBucketTrigger([
[
$class: 'BitBucketPPRPullRequestTriggerFilter',
actionFilter: [$class: 'BitBucketPPRPullRequestCreatedActionFilter']
],
[
$class: 'BitBucketPPRPullRequestTriggerFilter',
actionFilter: [$class: 'BitBucketPPRPullRequestUpdatedActionFilter']
]
])
])
])

scm {
	git {
	    remote {
	        url("MYREPO")
	    }
	}
}
steps {
    shell('echo START pull request created')
}

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

@cdelmonte-zg Are you sure its compatible with the newest jenkins version - 2.204.1
I guess @Sumit31 Also using the same version....

Kindly confirm me the details, Becuase after upgarding to the 2.204.1 from 2.190.1 its not working...

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

Hi @SAi0401

I'm going to check it. Thanks!

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

Hi @SAi0401
you should write BitBucketPPRTrigger (First letter in uppercase, as the name of the related class.)
$class: 'BitBucketPPRTrigger',

Let me know...

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

Hi @SAi0401

I upgraded Jenkins to the Jenkins ver. 2.204.1 , tested all and tried with the following scripted pipeline generated with the Snippet generator. On my side, all is working fine.

properties([
    pipelineTriggers([
        bitBucketTrigger([
            [
                $class: 'BitBucketPPRPullRequestTriggerFilter', 
                actionFilter: [
                    $class: 'BitBucketPPRPullRequestCreatedActionFilter'
                ]
            ]
        ])
    ])
])

node {
   def something
   stage('Preparation') {
     git branch: 'XXXXXXX', credentialsId: 'XXXXXXX', url: 'XXXXXXXXXXX'
   }
}

I don't see any relevant differences with yours, but in any case you might generate a new job and try only this scripted pipeline with only one action filter...

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

@SAi0401 , just two questions:

  1. did you build manually the pipeline once again after updating the script?
  2. might you send me a screenshot of you configuration page after building the pipeline manualy?

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

why do you execute a sh 'exit 0'?
Can you send me the logs?

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

saik41 avatar saik41 commented on September 13, 2024

from bitbucket-push-and-pull-request-plugin.

cdelmonte-zg avatar cdelmonte-zg commented on September 13, 2024

Hi @SAi0401

what do you mean? :)

from bitbucket-push-and-pull-request-plugin.

Related Issues (20)

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.