Code Monkey home page Code Monkey logo

Comments (7)

tomasbjerre avatar tomasbjerre commented on June 2, 2024 1

yes, I set a 60 min as ttl.

That means you have to disable the cache, wait up to 60 minutes or restart Jenkins.

from generic-webhook-trigger-plugin.

tomasbjerre avatar tomasbjerre commented on June 2, 2024

Closing this issue because there is nothing in it that can be investigated. Open new issue and provide your exact configuration as asked for in the issue template.

from generic-webhook-trigger-plugin.

cf1998 avatar cf1998 commented on June 2, 2024

pipeline:

pipeline {
    agent any
    triggers {
        GenericTrigger(
             genericVariables: [
                 [key: 'ref', value: '$.ref'],
                 [key: 'before', value: '$.before'],
                 [key: 'after', value: '$.after']
             ],
             causeString: 'Triggered on $ref',
             token: '12345678',
             printContributedVariables: true,
             printPostContent: true
        )
    }
    stages {
        // your stages here
    }
}

The free-style configuration is normal.

from generic-webhook-trigger-plugin.

juananinca avatar juananinca commented on June 2, 2024

I recently updated the plugin to the 2.1.1 version and new jobs created after the plugin update are not triggered by the plugin.
The plugin response is the same that @cf1998 mentioned:

{"jobs":null,"message":"Did not find any jobs with GenericTrigger configured!\nA token was supplied.\nIf you are using a token, you need to pass it like ...trigger/invoke?token=TOKENHERE\nIf you are not using a token, you need to authenticate like http://user:[email protected]/generic-webhook...\n"}

I must say that older jobs created before the plugin update work fine, the problem is with the new ones.
The only way I managed to get the new ones working was restarting jenkins. No new created job will be triggered without restarting Jenkins.

from generic-webhook-trigger-plugin.

tomasbjerre avatar tomasbjerre commented on June 2, 2024

Are you using the cache?

from generic-webhook-trigger-plugin.

juananinca avatar juananinca commented on June 2, 2024

yes, I set a 60 min as ttl.

from generic-webhook-trigger-plugin.

juananinca avatar juananinca commented on June 2, 2024

Perfect, I will check that.

Thank you for the quick response!

EDIT:
@tomasbjerre that was it. Waiting for the cache to be invalid do the trick.

from generic-webhook-trigger-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.