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

Using Jenkins UI Replay button fails #212

Open
ejrgilbert opened this issue Aug 29, 2019 · 2 comments
Open

Using Jenkins UI Replay button fails #212

ejrgilbert opened this issue Aug 29, 2019 · 2 comments

Comments

@ejrgilbert
Copy link

When trying to rerun a build by clicking the "Replay" button on the Jenkins UI, it fails. The variables aren't defined in the replayed build (as you can see by the null values):

git config remote.origin.url ssh://git@<bitbucket.url>:7999/null/null.git

This occurs when running a pipeline job with the trigger configured through the UI, the pipeline is SCM'ed, and the checkout is defined inside the pipeline itself as follows:

checkout([
    $class: 'GitSCM',
    branches: [[name: "*/${env.sourceBranch}"]],
    doGenerateSubmoduleConfigurations: false,
    extensions: [
        [
            $class: 'PreBuildMerge'],
            options: [mergeRemote: 'origin', mergeTarget: "${env.targetBranch}"]
    ],
    submoduleCfg: [],
    userRemoteConfigs: [[
        credentialsId: 'place-cred-id-here',
        refspec: '+refs/pull-requests/*: refs/remotes/origin/pr/*',
        url: "ssh://git@<bitbucket.url>:7999/${env.destinationRepositoryOwner}/${env.destinationRepositoryName}.git"
    ]]
])
@CodeMonk
Copy link
Collaborator

I agree. Both the Build Now and Replay functions have never worked.

I'm changing this into an enhancement, and hoping someone wants to work on it!

@HeidiRechek
Copy link

following

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

No branches or pull requests

3 participants