Jenkins Build Script

From Manjaro-Arm Building
Jump to: navigation, search

This script needs to be present on all devices that runs on the Jenkins build server. This script will be called by the Jenkins jobs. Again, change any paths to match your setup.

Jenkins Build Script
#!/bin/bash

if cd $1 ; makepkg -scd --nosign ; cp *.pkg.tar.xz /home/strit/Upload/$2/$3/$4/ ;
then
	rm /home/strit/Upload/$2/staging/$3/$4/$1*.pkg.tar.xz{,.sig}
	mv /home/strit/Upload/$2/$3/$4/$1*.pkg.tar.xz /home/strit/Upload/$2/staging/$3/$4/
	echo "Built $1 for $2 on $3 in $4."
else
	echo "Build Failed"
	exit 1
fi