Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to trigger Jenkins job that doesn't require parameters #1

Open
dskaggs opened this issue Nov 16, 2021 · 0 comments
Open

Unable to trigger Jenkins job that doesn't require parameters #1

dskaggs opened this issue Nov 16, 2021 · 0 comments

Comments

@dskaggs
Copy link

dskaggs commented Nov 16, 2021

I'm trying to trigger a Jenkins job that does not use the "buildWithParameters" URL fragment but am unable to trigger it with the correct URL no matter what I pass into the action.

I've tried all of the following:

      uses: viacomcbs/jenkins-action@master
      with:
        url: "${{ secrets.JENKINS_SERVER }}"
        user: ${{ secrets.JENKINS_USERNAME }}
        token: ${{ secrets.JENKINS_TOKEN }}
        job: '/job/folder-name/job/my-job/'
        parameters: ""
      uses: viacomcbs/jenkins-action@master
      with:
        url: "${{ secrets.JENKINS_SERVER }}"
        user: ${{ secrets.JENKINS_USERNAME }}
        token: ${{ secrets.JENKINS_TOKEN }}
        job: '/job/folder-name/job/my-job/'
        parameters:
      uses: viacomcbs/jenkins-action@master
      with:
        url: "${{ secrets.JENKINS_SERVER }}"
        user: ${{ secrets.JENKINS_USERNAME }}
        token: ${{ secrets.JENKINS_TOKEN }}
        job: '/job/folder-name/job/my-job/'

All of the above result in the URL /job/folder-name/job/my-job/buildWithParameters being called which results in a 404 on my pipeline.

Any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant