job migration issues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

job migration issues

David Maul
I am retiring an old jenkins server (Win Server 2008 R2) in favor of a new one on Centos.  I am using the jenkins CLI (get-job from source, create-job on destination), as I have done many times before, but: build steps are being ignored in the "destination" job, despite them being clearly present in the xml file that results from get-job.

I also tried the Import-Job plugin; same result.

What could cause the "create-job" to ignore certain parts of the job?
Jenkins versions are the same at both ends, and the relevant plugins are all version-matched as well.

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f584e7f4-40f2-49b7-b304-454e16878ba6n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: job migration issues

David Maul
I have also tried directly placing the config.xml file from the source computer into the destination computer's jobs/ tree.  The build steps are still NOT showing up in the Jankins UI.      Very curious.

On Friday, March 19, 2021 at 9:52:32 AM UTC-4 David Maul wrote:
I am retiring an old jenkins server (Win Server 2008 R2) in favor of a new one on Centos.  I am using the jenkins CLI (get-job from source, create-job on destination), as I have done many times before, but: build steps are being ignored in the "destination" job, despite them being clearly present in the xml file that results from get-job.

I also tried the Import-Job plugin; same result.

What could cause the "create-job" to ignore certain parts of the job?
Jenkins versions are the same at both ends, and the relevant plugins are all version-matched as well.

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/897f3e0b-fb94-4f9d-953f-74e972c0150bn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: job migration issues

Vladimir
I made a migration today but not via import plugin but via copy past jobs directory. And my problem was in the permissions. There was wrong owner in my jobs directory. I dont know if this is also the import plugin problem but may be some other file was copy pasted manually. 

Dátum: piatok 19. marca 2021, čas: 18:57:35 UTC+1, odosielateľ: [hidden email]
I have also tried directly placing the config.xml file from the source computer into the destination computer's jobs/ tree.  The build steps are still NOT showing up in the Jankins UI.      Very curious.

On Friday, March 19, 2021 at 9:52:32 AM UTC-4 David Maul wrote:
I am retiring an old jenkins server (Win Server 2008 R2) in favor of a new one on Centos.  I am using the jenkins CLI (get-job from source, create-job on destination), as I have done many times before, but: build steps are being ignored in the "destination" job, despite them being clearly present in the xml file that results from get-job.

I also tried the Import-Job plugin; same result.

What could cause the "create-job" to ignore certain parts of the job?
Jenkins versions are the same at both ends, and the relevant plugins are all version-matched as well.

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e63804e4-08f7-4a18-b6b6-61e062b7b5ecn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: job migration issues

David Maul
thanks.   I am able to import the job (either way), but all of the build steps INSIDE the job are missing.  Makes no sense.

On Friday, March 19, 2021 at 3:45:21 PM UTC-4 [hidden email] wrote:
I made a migration today but not via import plugin but via copy past jobs directory. And my problem was in the permissions. There was wrong owner in my jobs directory. I dont know if this is also the import plugin problem but may be some other file was copy pasted manually. 

Dátum: piatok 19. marca 2021, čas: 18:57:35 UTC+1, odosielateľ: [hidden email]
I have also tried directly placing the config.xml file from the source computer into the destination computer's jobs/ tree.  The build steps are still NOT showing up in the Jankins UI.      Very curious.

On Friday, March 19, 2021 at 9:52:32 AM UTC-4 David Maul wrote:
I am retiring an old jenkins server (Win Server 2008 R2) in favor of a new one on Centos.  I am using the jenkins CLI (get-job from source, create-job on destination), as I have done many times before, but: build steps are being ignored in the "destination" job, despite them being clearly present in the xml file that results from get-job.

I also tried the Import-Job plugin; same result.

What could cause the "create-job" to ignore certain parts of the job?
Jenkins versions are the same at both ends, and the relevant plugins are all version-matched as well.

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6f7d8206-0e67-401a-bc27-fc6f2713f3f8n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: job migration issues

Vladimir
What about paths to working directory in job settings? 

Dátum: piatok 19. marca 2021, čas: 22:38:29 UTC+1, odosielateľ: [hidden email]
thanks.   I am able to import the job (either way), but all of the build steps INSIDE the job are missing.  Makes no sense.

On Friday, March 19, 2021 at 3:45:21 PM UTC-4 [hidden email] wrote:
I made a migration today but not via import plugin but via copy past jobs directory. And my problem was in the permissions. There was wrong owner in my jobs directory. I dont know if this is also the import plugin problem but may be some other file was copy pasted manually. 

Dátum: piatok 19. marca 2021, čas: 18:57:35 UTC+1, odosielateľ: [hidden email]
I have also tried directly placing the config.xml file from the source computer into the destination computer's jobs/ tree.  The build steps are still NOT showing up in the Jankins UI.      Very curious.

On Friday, March 19, 2021 at 9:52:32 AM UTC-4 David Maul wrote:
I am retiring an old jenkins server (Win Server 2008 R2) in favor of a new one on Centos.  I am using the jenkins CLI (get-job from source, create-job on destination), as I have done many times before, but: build steps are being ignored in the "destination" job, despite them being clearly present in the xml file that results from get-job.

I also tried the Import-Job plugin; same result.

What could cause the "create-job" to ignore certain parts of the job?
Jenkins versions are the same at both ends, and the relevant plugins are all version-matched as well.

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/74e14e56-5271-4a9c-916e-fba8feae95adn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: job migration issues

Fritz Elfert
In reply to this post by David Maul
Most likely, you have some plugins missing on the destination jenkins. To find out, if some build step is provided by a plugin,
on the old jenkins, open the job configuration, find the step that is missing on the destination and click on the help button
at the right side (hopefully it has one).
If that step is provided by some plugin, then below the help text there is a remark "(from xyz plugin)".
In order to get those missing steps back on the destination jenkins, you have to import your jobs AFTER installing those missing plugins.

Hope this helps
  -Fritz

On 19.03.21 14:52, David Maul wrote:

> I am retiring an old jenkins server (Win Server 2008 R2) in favor of a new one on Centos.  I am using the jenkins CLI (get-job from source, create-job on destination), as I have done many times before, but: build steps are being ignored in the "destination" job, despite them being clearly present in the xml file that results from get-job.
>
> I also tried the Import-Job plugin; same result.
>
> What could cause the "create-job" to ignore certain parts of the job?
> Jenkins versions are the same at both ends, and the relevant plugins are all version-matched as well.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email] <mailto:[hidden email]>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f584e7f4-40f2-49b7-b304-454e16878ba6n%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/f584e7f4-40f2-49b7-b304-454e16878ba6n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8a95b0b6-5b06-4f04-d767-e58e7732ac27%40fritz-elfert.de.

OpenPGP_0x6E8338980332A6B0.asc (14K) Download Attachment
OpenPGP_signature (209 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: job migration issues

David Maul
Thanks.  I have verified that all plugins referred to by the XML are present, and of the same version.  But I do think it is something like this, perhaps some other system-level configuration that differs.  I will keep searching. Thanks for the ideas so far.

On Sunday, March 21, 2021 at 6:31:34 AM UTC-4 [hidden email] wrote:
Most likely, you have some plugins missing on the destination jenkins. To find out, if some build step is provided by a plugin,
on the old jenkins, open the job configuration, find the step that is missing on the destination and click on the help button
at the right side (hopefully it has one).
If that step is provided by some plugin, then below the help text there is a remark "(from xyz plugin)".
In order to get those missing steps back on the destination jenkins, you have to import your jobs AFTER installing those missing plugins.

Hope this helps
-Fritz

On 19.03.21 14:52, David Maul wrote:

> I am retiring an old jenkins server (Win Server 2008 R2) in favor of a new one on Centos.  I am using the jenkins CLI (get-job from source, create-job on destination), as I have done many times before, but: build steps are being ignored in the "destination" job, despite them being clearly present in the xml file that results from get-job.
>
> I also tried the Import-Job plugin; same result.
>
> What could cause the "create-job" to ignore certain parts of the job?
> Jenkins versions are the same at both ends, and the relevant plugins are all version-matched as well.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email] <mailto:[hidden email]>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f584e7f4-40f2-49b7-b304-454e16878ba6n%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/f584e7f4-40f2-49b7-b304-454e16878ba6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/70566b6d-ad01-4c98-b090-a352a32b256an%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: job migration issues

David Maul
I created another VM, identical in configuration EXCEPT this time I installed jenkins directly onto the Centos 8 OSIn my first VM, it was installed as a podman container.  This is the only difference I can see.  Anyone that can explain why it would work outside a container differently than inside?  THANKS

On Monday, March 22, 2021 at 8:46:26 AM UTC-4 David Maul wrote:
Thanks.  I have verified that all plugins referred to by the XML are present, and of the same version.  But I do think it is something like this, perhaps some other system-level configuration that differs.  I will keep searching. Thanks for the ideas so far.

On Sunday, March 21, 2021 at 6:31:34 AM UTC-4 [hidden email] wrote:
Most likely, you have some plugins missing on the destination jenkins. To find out, if some build step is provided by a plugin,
on the old jenkins, open the job configuration, find the step that is missing on the destination and click on the help button
at the right side (hopefully it has one).
If that step is provided by some plugin, then below the help text there is a remark "(from xyz plugin)".
In order to get those missing steps back on the destination jenkins, you have to import your jobs AFTER installing those missing plugins.

Hope this helps
-Fritz

On 19.03.21 14:52, David Maul wrote:

> I am retiring an old jenkins server (Win Server 2008 R2) in favor of a new one on Centos.  I am using the jenkins CLI (get-job from source, create-job on destination), as I have done many times before, but: build steps are being ignored in the "destination" job, despite them being clearly present in the xml file that results from get-job.
>
> I also tried the Import-Job plugin; same result.
>
> What could cause the "create-job" to ignore certain parts of the job?
> Jenkins versions are the same at both ends, and the relevant plugins are all version-matched as well.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email] <mailto:[hidden email]>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f584e7f4-40f2-49b7-b304-454e16878ba6n%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/f584e7f4-40f2-49b7-b304-454e16878ba6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3c34aea0-6808-4858-a8a1-1228c9ce924dn%40googlegroups.com.