python - Jenkins doesn't include refrenced files when building conda package -


i building small conda package jenkins (linux) should just:

  • download .zip external refrence holding font files
  • extract .zip
  • copy font files specific folder
  • build package

the build runs successful, package not include font files, empty. build.sh has:

mkdir $prefix\root\share\fonts cp *.* $prefix\root\share\fonts 

my meta.yaml source has:

source: url: <ftp server url>/next-fonts.zip fn: next-fonts.zip 

in jenkins do:

mkdir build conda build fonts 

the console output strange though @ part:

+ mkdir /var/lib/jenkins/conda-bld/fonts_1478708638575/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_prootsharefonts + cp lato-black.ttf lato-blackitalic.ttf lato-bold.ttf lato-bolditalic.ttf lato-hairline.ttf lato-hairlineitalic.ttf lato-italic.ttf lato-light.ttf lato-lightitalic.ttf lato-regular.ttf myriadpro-black.otf myriadpro-bold.otf myriadpro-light.otf myriadpro-regular.otf myriadpro-semibold.otf conda_build.sh /var/lib/jenkins/conda-bld/fonts_1478708638575/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_prootsharefonts build start: fonts-1-1 source cache directory is: /var/lib/jenkins/conda-bld/src_cache found source in cache: next-fonts.zip extracting download package: fonts-1-1 source tree in: /var/lib/jenkins/conda-bld/fonts_1478708638575/work/fonts number of files: 0 

to me seems cp either doesn't complete or copies wrong directory. unfortunately, placeholder stuff can't decypher fonts land when copied, know in /work/fonts, there no files , nothing included in package. while typing, noted /work/fonts has fonts starting capital f, while in configuration or scripts there instance of fonts starting capital f.

any insight on might go wrong?

mkdir $prefix\root\share\fonts cp *.* $prefix\root\share\fonts 

should replaced with

mkdir $prefix/root/share/fonts cp * $prefix/root/share/fonts 

the buildscript taken package built in windows , in changing build script forgot change folder separators.

additionally creating subfolder structures isn't possible in linux while in windows. this

mkdir $prefix/root/ mkdir $prefix/root/share/ mkdir $prefix/root/share/fonts/ cp * $prefix/root/share/fonts/ 

was ultimate solution problem.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -