Page MenuHomeDevCentral

arc-create-ops-task
No OneTemporary

arc-create-ops-task

#!/bin/sh
# -------------------------------------------------------------
# Create operations task with Arcanist
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/devserver/userland-home/files/dereckson/bin/arc-create-ops-task
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
ARC=arc
AWK=gawk
URL="https://devcentral.nasqueron.org"
if [ $# -eq 0 ]; then
echo "Usage: $0 <title of the task to create>"
exit 64
fi
TEXT=$1
arcTaskCreatedId=$($ARC todo "$TEXT" --project servers --no-ansi --conduit-uri "$URL"/api | $AWK '{match($3,"T[0-9]+",a)}END{print a[0]}' | cut -d'T' -f 2)
echo $URL/T"$arcTaskCreatedId"

File Metadata

Mime Type
text/x-shellscript
Expires
Sat, Nov 14, 19:33 (1 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4228295
Default Alt Text
arc-create-ops-task (993 B)

Event Timeline