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

Resubmitted jobs lose their parameters #120

Open
Liath opened this issue Jul 11, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@Liath
Copy link

commented Jul 11, 2019

It looks like build parameters are lost when a job is resubmitted due to SpotFleet killing the host it was running on.

It's kind of uninteresting but, just in case, here is the log: https://gist.github.com/Liath/bba5290f1bf0665ee61d6ccd1fc3020e

The Jenkinsfile of the job is something like this:

pipeline {
  agent {
    label "ec2-fleet"
  }

  parameters {
    string(name: 'template', defaultValue: 'false', description: 'a path')
    string(name: 'stage', defaultValue: 'dev', description: 'environment')
  }

  stages {
    stage('Build') {
      when { expression { params.template != 'false' } }

      steps {
        withAWS(region: 'us-west-2', credentials: 'aws') {
          sh "long-running --stage ${params.stage}' ${params.template}"
        }
      }
    }
  }
}
@terma

This comment has been minimized.

Copy link
Collaborator

commented Jul 12, 2019

thx for report, let me check

@terma terma added the bug label Jul 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.