jenkins-xml-to-jobdsl icon indicating copy to clipboard operation
jenkins-xml-to-jobdsl copied to clipboard

no back to line in the generated file

Open sbuisson opened this issue 8 years ago • 6 comments

the generated file appear to me as one block of code, without identation nor /n, can you correct-it?

I suspect it's an html issue. Also, there is strange things like #(Element:0x9c28a4 {

sbuisson avatar Sep 05 '17 06:09 sbuisson

How are you generating it? Using docker and curl? What platform are you on? Linux? Windows? Mac?

On Tue, Sep 5, 2017 at 2:40 AM sbuisson [email protected] wrote:

the generated file appear to me as one block of code, without identation nor /n, can you correct-it?

I suspect it's an html issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/visualphoenix/jenkins-xml-to-jobdsl/issues/42, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYDv5j-3iGtAJAw0tvsVI5PKuH2FcOiks5sfOztgaJpZM4PMgIn .

-- Raymond "VisualPhoenix" Barbiero

visualphoenix avatar Sep 05 '17 08:09 visualphoenix

I use a mac, with chrome.

sbuisson avatar Sep 10 '17 21:09 sbuisson

pipelineJob('20170905063733') { keepDependencies(false) properties { #(Element:0x9c34ac { name = "org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty", children = [ #(Text "\n "), #(Element:0x9c28a4 { name = "triggers", children = [ #(Text "\n "), #(Element:0x9d3f00 { name = "org.jenkinsci.plugins.ghprb.GhprbTrigger", attributes = [ #(Attr:0x9d3c08 { name = "plugin", value = "[email protected]" })], children = [ #(Text "\n "), #(Element:0x9d2b50 { name = "spec", children = [ #(Text "H/5 * * * ")] }), #(Text "\n "), #(Element:0x60a6a8 { name = "configVersion", children = [ #(Text "3")] }), #(Text "\n "), #(Element:0x9d7420 { name = "adminlist" }), #(Text "\n "), #(Element:0x9d6c50 { name = "allowMembersOfWhitelistedOrgsAsAdmin", children = [ #(Text "false")] }), #(Text "\n "), #(Element:0x609f78 { name = "orgslist" }), #(Text "\n "), #(Element:0x5ff104 { name = "cron", children = [ #(Text "H/5 * * * ")] }), #(Text "\n "), #(Element:0x5f940c { name = "buildDescTemplate" }), #(Text "\n "), #(Element:0x5f67fc { name = "onlyTriggerPhrase", children = [ #(Text "false")] }), #(Text "\n "), #(Element:0x5f2968 { name = "useGitHubHooks", children = [ #(Text "false")] }), #(Text "\n "), #(Element:0x5ef510 { name = "permitAll", children = [ #(Text "false")] }), #(Text "\n "), #(Element:0x9d7894 { name = "whitelist" }), #(Text "\n "), #(Element:0x9d7088 { name = "autoCloseFailedPullRequests", children = [ #(Text "false")] }), #(Text "\n "), #(Element:0x9d63b8 { name = "displayBuildErrorsOnDownstreamBuilds", children = [ #(Text "false")] }), #(Text "\n "), #(Element:0x9d33c0 { name = "whiteListTargetBranches", children = [ #(Text "\n "), #(Element:0x9d290c { name = "org.jenkinsci.plugins.ghprb.GhprbBranch", children = [ #(Text "\n "), #(Element:0x9c3c90 { name = "branch" }), #(Text "\n ")] }), #(Text "\n ")] }), #(Text "\n "), #(Element:0x9c214c { name = "blackListTargetBranches", children = [ #(Text "\n "), #(Element:0x9ba384 { name = "org.jenkinsci.plugins.ghprb.GhprbBranch", children = [ #(Text "\n "), #(Element:0x9b03ac { name = "branch" }), #(Text "\n ")] }), #(Text "\n ")] }), #(Text "\n "), #(Element:0x9a39cc { name = "gitHubAuthId", children = [ #(Text "3789877c-3eaa-4cce-8183-df16e9443bb1")] }), #(Text "\n "), #(Element:0x9996e8 { name = "triggerPhrase" }), #(Text "\n "), #(Element:0x998ab8 { name = "skipBuildPhrase", children = [ #(Text ".\[skip\W+ci\].")] }), #(Text "\n "), #(Element:0x987844 { name = "blackListCommitAuthor" }), #(Text "\n "), #(Element:0x986b74 { name = "blackListLabels" }), #(Text "\n "), #(Element:0x98600c { name = "whiteListLabels" }), #(Text "\n "), #(Element:0x97935c { name = "includedRegions" }), #(Text "\n "), #(Element:0x9787cc { name = "excludedRegions" }), #(Text "\n "), #(Element:0x975d24 { name = "extensions", children = [ #(Text "\n "), #(Element:0x975388 { name = "org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus", children = [ #(Text "\n "), #(Element:0x974974 { name = "commitStatusContext" }), #(Text "\n "), #(Element:0x971d50 { name = "triggeredStatus" }), #(Text "\n "), #(Element:0x97151c { name = "startedStatus" }), #(Text "\n "), #(Element:0x970d24 { name = "statusUrl" }), #(Text "\n "), #(Element:0x9704dc { name = "addTestResults", children = [ #(Text "false")] }), #(Text "\n ")] }), #(Text "\n ")] }), #(Text "\n ")] }), #(Text "\n ")] }), #(Text "\n ")] }) } definition { cps { script('''
node { def mvnHome stage('Preparation') { // for display purposes // Get some code from a GitHub repository git 'https://github.com/jglick/simple-maven-project-with-tests.git' // Get the Maven tool. // ** NOTE: This 'M3' Maven tool must be configured // ** in the global configuration.

  }
  stage('Build') {
  // Run the maven build
  if (isUnix()) {
  sh "'mvn' -Dmaven.test.failure.ignore clean package"
  } else {
  bat(/"mvn" -Dmaven.test.failure.ignore clean package/)
  }
  }
  stage('Results') {
  junit '**/target/surefire-reports/TEST-*.xml'
  archive 'target/*.jar'
  }
  }

''' ) sandbox(true) } } triggers { } #(Element:0x96e628 { name = "disabled", children = [ #(Text "false")] }) }

sbuisson avatar Sep 10 '17 21:09 sbuisson

can you please let me know what the source xml job looks like and show me how you're invoking it?

visualphoenix avatar Sep 12 '17 17:09 visualphoenix

I cannot past xml properly, so I do a PR : https://github.com/visualphoenix/jenkins-xml-to-jobdsl/pull/43

sbuisson avatar Sep 13 '17 20:09 sbuisson

Cool. Thanks. I'll take a look when I have time.

On Wed, Sep 13, 2017 at 4:18 PM sbuisson [email protected] wrote:

I cannot past xml properly, so I do a PR : #43 https://github.com/visualphoenix/jenkins-xml-to-jobdsl/pull/43

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/visualphoenix/jenkins-xml-to-jobdsl/issues/42#issuecomment-329284619, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYDvwBK_HAp1gaXRmNcLvFRrn1dPjOtks5siDh-gaJpZM4PMgIn .

-- Raymond "VisualPhoenix" Barbiero

visualphoenix avatar Sep 14 '17 14:09 visualphoenix